Skip to content
Proxy events between `EventEmitter`s
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

evproxy Build Status

Proxy events between EventEmitters.

Installation

npm install evproxy

Usage

var EventEmitter = require('events').EventEmitter,
    evproxy = require('evproxy');

var dest = new EventEmitter(),
    source = new EventEmitter();

evproxy({ source: source, destination: dest });

dest.on('event', function (arg) {
  console.log('got event', arg);
});

dest.on('next event', function (arg0, arg1) {
  console.log('got next event', arg0, arg1);
});

source.emit('event', 42);
source.emit('next event', 1, -1);
Something went wrong with that request. Please try again.