Generate crontab expression using friendly and declarative API
npm install cron-expression-generator
Generate crontab expression using friendly and declarative API heavily inspired by Laravel.
``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
``
MIT License © 2022 Julien Ripouteau