Wiki
Clone wikischeduler-cron / CronJob
CronJob
It is designed for execution using Cron
Options
-
cron
- Cron string which specified with special formattype: string
-
func
- the function that will be executedtype: function
- returns: undefined
Methods
-
stop
- stops function executionreturns: undefined
How to use
var CronJob = require('scheduler-cron').CronJob; new CronJob('0 5 * * * *', function() { // Uploading of my everyday server statistics in 05:00 });
Updated