event-schedule

0.1.0 • Public • Published

Event Schedule

Introduction:

Create time scheduled event callbacks

Example use:

var eventSchedule = require('event-schedule');
 
eventSchedule.at('19:00:30', function(time) {
    // this will fire at 19:00:30 system time
}, function(err, id) {
    if (!err) {
        // gives you an id that can be used to remove the listener at a later point
        //eventSchedule.removeListener(id);
    }
});
 
eventSchedule.at('19:01', function(time) {
    // this will fire at 19:01:00 system time
}, function(err, id) {
    if (!err) {
        // gives you an id that can be used to remove the listener at a later point
        //eventSchedule.removeListener(id);
    }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i event-schedule

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • eiriklv