node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


event emitter constructor factory


An event emitter constructor factory. Save ~3 lines of code with each use!

require('make-emitter') returns the function makeEmitter

The function make-emitter returns a constructor function for a new object which inherits from EventEmitter. Optionall you can supply a hash of methods which will be added to the prototype of the new Constructor.

var EventEmitter = require('events').EventEmitter;
var util = require('util');
var CustomEmitter = function() {;
util.inherits(CustomEmitter, EventEmitter);
CustomEmitter.prototype.explode = function() {
var emitter = require('make-emitter');
var CustomEmitter = emitter({
  explode: function() {


npm install make-emitter
npm test