time-machine
time-machine is a nodejs module which abstracts the creation and destruction of timeouts and intervals.
Installation
$ npm install time-machine
Usage
var TimeMachine = ;var tm = ; // create a timeout in the default group with the name 'test-timeout'tm; // create a interval in the default group with the name 'test-interval'tm; // action which get's called from somewhere to stop all timeouts and intervals{ // stop a single timeout tm; // stop all timeouts in a group tm; // stop all timeouts in all groups tm; // stop a single interval tm; // stop all intervals in a group tm; // stop all intervals in all groups tm; };