Tasty task scheduler with a mungable internal clock filling.
$ npm install --save cronut
;const cron = ;;;;;
const removeTask =;// Unschedule after 10 seconds;
Creates a new task scheduler.
;const cron = ;
Patterns are any valid pattern supported by
cron. The task is the function to be executed at the appointed times. Returns a function to stop the task.
;// same ascron;// removableconst removeTask = cron;;
moment.now function and resets internal cron timers.
There are a bunch of task schedulers already available, but none of them allowed me to mess with the internal clock for timeline manipulation or testing purposes.
Standards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.
$ npm test
© Shannon Moeller email@example.com (http://shannonmoeller.com)
Licensed under MIT