event-relay is a little module for proxying events through arbitrary emitters. It will work with any event emitter implementation (EventEmitter, emitter-component, asEvented, etc) that exposes an emit() method.
$ npm install event-relay
event-relay(event (string):the name of the event thatwill be emittedemitter (event_emitter):the proxy who will emit theaforementioned event. musthave an emit() method)
var EventEmitter = EventEmittervar relay =var source =var proxy =proxysourcesource