Node's event emitter for all engines. Modified to include an ES6 version.
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 = ;var emitter = ;
Instead, do the following:
var EventEmitter = EventEmitter;var emitter = ;
npm install events
var EventEmitter = EventEmitter
See the node.js event emitter docs