1.0.0 • Published 9 years ago
event-emitter-forward v1.0.0
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
1.0.0
9 years ago