cron expression generator
1.0.0
Generate crontab expression using friendly and declarative API heavily inspired by Laravel.
npm install cron-expression-generator pnpm install cron-expression-generator
// ESMimport { cron } from 'cron-generator-expression' // CJSconst { cron } = require('cron-generator-expression')const expression = cron().mondays().everyTwoMinutes().get()console.log(expression) // */2 * * * 1
MIT License © 2022 Julien Ripouteau