node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

classical-eventemitter

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.');