events-es6
v1.1.1
Published
Node's event emitter for all engines.
Downloads
2
Maintainers
Readme
events
Node's event emitter for all engines. Modified to include an ES6 version.
Breaking Changes
ES6 modules do not let you export an object as the module. Thus, the following will not work if you are using the non-ES6 version:
var EventEmitter = require('events');
var emitter = new EventEmitter();
Instead, do the following:
var EventEmitter = require('events').EventEmitter;
var emitter = new EventEmitter();
Install
npm install events
Require
var EventEmitter = require('events').EventEmitter
Usage
See the node.js event emitter docs