0.6.3 • Published 10 years ago
fray.emitter v0.6.3
fray.emitter
Event emitter
Usage
Events are deferred ensuring an asynchronous execution
var emitter = require('fray.emitter');
var channel = emitter();
channel.emit('foo', 'hello!');
channel.on('foo', function (msg) {
console.log(msg); // 'hello!'
});Install
npm install fray.emitterContributing
PRs are welcome!
Unit tests
git clone https://github.com/frayjs/emitter
cd events
npm install
npm testLicense
MIT