eek

mix in an EventEmitter to your constructor

eek

mix in an EventEmitter to your constructor

var eek = require('eek')
 
var foo = eek(function foo() {
  this.isAFoo = true
})
 
var bar = new foo()
bar instanceof foo
// => true 
 
bar.on('foo', function (val) {
  // this is called 
  // val => 23 
})
bar.emit('foo', 23)
$ npm install eek

From package root:

$ npm install
$ npm test

MIT. (c) MMXIII jden jason@denizac.org. See LICENSE.md