once-upon

Executes a callback once upon the first of a list of events

npm install once-upon
1 downloads in the last day
30 downloads in the last week
113 downloads in the last month

once-upon

===========

Executes a callback at most once upon the first of any number of events.

example

var once = require('once-upon'); var E = require('events').EventEmitter;

onceUpon('SIGINT SIGTERM', process, function(){ console.log('I will be called at most once'); });

process.emit('SIGTERM'); // "I will be called at most once"

install

> npm install once-upon

License

MIT

npm loves you