0.2.2 • Published 12 years ago

eventemitter-light v0.2.2

Weekly downloads
27
License
-
Repository
github
Last release
12 years ago

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

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago