Namespaced global event emitter
It just exports an EventEmitter
. Think of it as a singleton.
var sparkles = require('sparkles');
sparkles.on('my-event', function(evt){
console.log('my-event handled', evt);
});
sparkles.emit('my-event', { my: 'event' });
MIT