0.2.2 • Published 12 years ago
eventemitter-light v0.2.2
eventemitter-light
Tiny event emitter for node and the browser
Status: Beta
Example
var EventEmitter = require("eventemitter-light");
var ee = Object.create(EventEmitter).constructor();
ee.on('foo.namespaces', logFoo);
ee.emit('*.namespaces');
function logFoo() {
console.log('foo');
}
Motivation
EventEmitter2 is 2kb. That's far too much. EE-light is a sensible 400bytes.
Documentation
It's like EventEmitter build into node.
Installation
npm install eventemitter-light
Test
make test
Contributors
- Raynos