Cronify
Making Cron Simple - uses node-cron under the hood
![](https://raw.githubusercontent.com/umairx97/cronify/HEAD/cronify.png)
npm
npm install cronify
yarn
yarn add cronify
🚀 Examples
Checkout the examples to see the Cronify API in action.
💡 API
cronify(params, opts<optional>, fn, fnArgs)
const cron = // simple node-cron as you like itcron // without options // with options cron
everySecond(opts<optional>, fn, fnArgs)
const cron = // without optionscron // with optionscron
everyNthSecond(seconds, opts<optional> fn, fnArgs)
const cron = // without options - this will log hello world every 2 secondscron // with options - this will log hello world every 2 secondscron
everyMinute(opts<optional>, fn, fnArgs)
const cron = // without optionscron // with optionscron
everyNthMinute(minutes, opts<optional>, fn, fnArgs)
const cron = // without options - this will log hello world every 2 minutescron // with options - this will log hello world every 2 minutescron
everyHour(opts<optional>, fn, fnArgs)
const cron = // without optionscron // with optionscron
everyNthHour(hours, opts<optional>, fn, fnArgs)
const cron = // without options - this will log hello world every 2 hourscron // with options - this will log hello world every 2 hourscron
at(period, opts<optional>, fn, fnArgs)
const cron = /* period = 'daily' | 'weekly' | 'monthly' at time = hh:mm cron.at("period" at "time", opts<optional>, function, ...functionArgs) without options - this will start the job daily at 5Am BUT you need to have some measure to stop the job on your own schedule See examples/at.js*/cron // with options cron