# cronstruct

> Build cron expressions in a human readable manner.

Latest version **1.0.2** (published 2023-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install cronstruct
pnpm add cronstruct
yarn add cronstruct
bun add cronstruct
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-05-06 |
| First published | 2023-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bitomic |
| Maintainers | bitomic |
| Keywords | cron, cron expression |

## Links

- npm: https://www.npmjs.com/package/cronstruct
- Repository: https://github.com/bitomic/cronstruct
- Homepage: https://github.com/bitomic/cronstruct#readme
- Issues: https://github.com/bitomic/cronstruct/issues
- npm.io page: https://npm.io/package/cronstruct

## Dependencies (2)

- [tsup](https://npm.io/package/tsup.md) ^6.7.0
- [@sapphire/shapeshift](https://npm.io/package/@sapphire/shapeshift.md) ^3.8.2

## Recent versions

- 1.0.2 (latest) — 2023-05-06
- 1.0.1 — 2023-05-06
- 1.0.0 — 2023-05-06

## README

# Cronstruct
> Construct cron expressions in a more human-readable way.

## Features
- Written using Typescript (and thus fully typed, supporting TypeScript and JavaScript).
- Lightweight.
- Suports ESM and CJS.

## Installation
```
# npm
npm i cronstruct

# yarn
yarn add cronstruct
```

## Usage
> The following examples use TypeScript and ESM `import ... from ...`, but it works the same with JavaScript and/or CJS.

Create a new instance:
```ts
import Cronstruct from 'cronstruct'
const cron = new Cronstruct()
```

Set any part of the expression:
```ts
new Cronstruct()
	.minute.at( 15 )
	.hour.every( 1 )
	// 15 */1 * * *
```

---
_Source: https://npm.io/package/cronstruct · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
