https://github.com/julien-r44/cron-expression-generator
🔧 Generate crontab expression using friendly and declarative API
https://github.com/julien-r44/cron-expression-generator
cron crontab nodejs
Last synced: 7 months ago
JSON representation
🔧 Generate crontab expression using friendly and declarative API
- Host: GitHub
- URL: https://github.com/julien-r44/cron-expression-generator
- Owner: Julien-R44
- License: mit
- Created: 2022-05-08T18:42:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T22:41:48.000Z (over 3 years ago)
- Last Synced: 2025-05-18T08:18:46.704Z (9 months ago)
- Topics: cron, crontab, nodejs
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
Cron Expression Generator
Generate crontab expression using friendly and declarative API heavily inspired by Laravel.
# Installation
```bash
npm install cron-expression-generator
pnpm install cron-expression-generator
```
# Usage
```ts
// ESM
import { cron } from 'cron-generator-expression'
// CJS
const { cron } = require('cron-generator-expression')
const expression = cron().mondays().everyTwoMinutes().get()
console.log(expression) // */2 * * * 1
```
## License
[MIT](./LICENSE) License © 2022 [Julien Ripouteau](https://github.com/Julien-R44)