Re emit events from another emitter
npm install re-emitter[travis-image]: https://img.shields.io/travis/feross/re-emitter/master.svg
[travis-url]: https://travis-ci.org/feross/re-emitter
[npm-image]: https://img.shields.io/npm/v/re-emitter.svg
[npm-url]: https://npmjs.org/package/re-emitter
[downloads-image]: https://img.shields.io/npm/dm/re-emitter.svg
[downloads-url]: https://npmjs.org/package/re-emitter
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
#### Re emit events from another emitter

Works in node and the browser with browserify.

```
npm install re-emitter
`js
var reemit = require('re-emitter')
var emitter = new EventEmitter()
var other = new EventEmitter()
reemit(emitter, other, ['foo', 'bar'])
other.on('foo', function () {
// foo will fire on other emitter!
})
emitter.emit('foo')
other.on('baz', function () {
// baz will not fire on other emitter
})
emitter.emit('baz')
`
#### canceling re-emitting
reemit returns a function`, which when called, cancels all re-emitting by removing the
event listeners which it added.
- Raynos
- Feross
MIT. Copyright (c) Raynos.