node-event-hijack
Hijacks the specified EventEmitter event
Hijacks the specified EventEmitter event name.
Installation
$ npm install event-hijack
Example
var hijack = ;var EventEmitter = EventEmitter;// our test subjet "emitter" instancevar emitter = ;// you can use the emitter normallyemitter;emitter;// once you "hijack" the event, subsequent listeners added for that// event will *not* be added as regular listeners for that eventvar emitThing =;// this will *not* be a "thing" listener. instead, you must// invoke `emitThing()` for this callback to be invokedemitter;// emit a fake "thing" event, the original listener will not be invoked,// but the hijacked listener *will* be invoked;