Node-Schedulerjs
A simple scheduler to help you schedule functions using javascript Date object or Crontab formatted string
Installation:
Using npm:
npm install node-schedulerjs
Usage:
You can pass in a Javascript Date Object or a string in Crontab format:
Using Date Object:
var scheduler = ; var now = ;var future = now + 5000;var task = future { console;};taskstart;
Using Crontab format string:
var scheduler = ; var task = '* * * * *' { console;};taskstart;
if you want to stop a scheduled task:
var scheduler = ; var task = '* * * * *' { console;};taskstart;task; // no statement will be printed since we stopped the task;
License
Licensed under MIT license