$ npm install emitter
Faster events controller for class and object
$ npm install emitter
import { EventEmitter, Promise } from 'emitter'
// Extend a object
let obj = { /* ... */ }
EventEmitter.extend(obj)
// Create a new emitter
let emitter = new EventEmitter()
// Define a class extend from Promise or EventEmitter
class Machine extends Promise {
// ...
}
$ npm install
built upon love by docor v0.3.0
© 2010 - cnpmjs.org x YWFE | Home | YWFE