EventEmitter.prototype.eventNames was added in nodejs/node#5617 an will be available in Node.js 6.0 and later.
You should probably check for its presense and use that instead of manually listing EventEmitter.prototype._events in index.js#L81-L83, so you won't be hitting undocumented internal API.
EventEmitter.prototype.eventNameswas added in nodejs/node#5617 an will be available in Node.js 6.0 and later.You should probably check for its presense and use that instead of manually listing
EventEmitter.prototype._eventsin index.js#L81-L83, so you won't be hitting undocumented internal API.