Skip to content

Namespaced global event emitter.

License

Notifications You must be signed in to change notification settings

gulpjs/sparkles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sparkles

Build Status

Namespaced global event emitter

Usage

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' });

License

MIT