0.2.0 • Published 3 years ago

@ablanc/simple-cron v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Simple cron

To simply build cron string using an expressive API

Installation

  yarn add @ablanc/simple-cron

  # or using npm

  npm install @ablanc/simple-cron

Usage/Examples

const { every } = '@ablanc/simple-cron'

every(5).seconds() // */5 * * * * *
every(5).minutes() // */5 * * * *
every(5).hours()   // * */5 * * *
every(5).days()    // * * */5 * *
every(5).months()  // * * * */5 *
every(5).years()   // * * * * */5

Running Tests

To run tests, run the following command

  yarn test