event-emitter-forward

1.0.0 • Public • Published

event-emitter-forward

Forward events from one EventEmitter to another.

var forward = require("event-emitter-forward"),
    EventEmitter = require("events").EventEmitter,
    source = new EventEmitter(),
    target = new EventEmitter();
 
forward("foo", source, target);
target.on("foo", console.log.bind(console));
source.emit("foo", "foofing");
 
// expected output:
// foofing

Readme

Keywords

none

Package Sidebar

Install

npm i event-emitter-forward

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rremer