eventemitter-light
Tiny event emitter
Last updated 13 years ago by raynos .
Repository · Original npm · Tarball · package.json
$ gnpm install eventemitter-light 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.2                                ...           latest (12 years ago)

7 Versions

  • 0.2.2                                ...           12 years ago
  • 0.2.1                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.3                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |