eventemitter-light

Tiny event emitter

npm install eventemitter-light
7 downloads in the last day
7 downloads in the last week
14 downloads in the last month

eventemitter-light Build Status

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

MIT Licenced

npm loves you