schedule nodejs to run every few minutes code example
Example: node schedule every minute
var rule = new schedule.RecurrenceRule();
rule.minute = new schedule.Range(0, 59, 5);
schedule.scheduleJob(rule, function(){
console.log(rule);
console.log('Today is recognized by Rebecca Black!---------------------------');
});