eiriklv / event-clock

Create timed event callbacks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create timed event callbacks

License:MIT License


Languages

Language:JavaScript 100.0%