/event-clock

Create timed event callbacks

Primary LanguageJavaScriptMIT LicenseMIT

Event Clock Build Status

Introduction:

Create timed event callbacks.

Example use:

var EventClock = require('event-clock');

EventClock.on('19:00:30', function () {
  // this will fire at 19:00:30 system time
});

var cb = function () {
  // this will fire 19:01:00 system time
}

EventClock.on('19:01', cb);

// removable with:
EventClock.off('19:01', cb);

// stop clock
EventClock.stop();

Development:

npm install
npm test