classical-eventemitter

A wrapper for the NodeJS event manager using the classical OO style.

npm install classical-eventemitter
4 downloads in the last month

Classical

A wrapper for the NodeJS event manager using the classical OO style.

Documentation

Extending the Event Manager

var Server = EventManager.extend(function() {});

Usage

var foo = new Server;
foo.on('data', function(data) {
    console.log(data);
});
foo.emit('data', 'Hello, World.');
npm loves you