# re-emitter

> Re emit events from another emitter

Latest version **1.1.4** (published 2019-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install re-emitter
pnpm add re-emitter
yarn add re-emitter
bun add re-emitter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-06-28 |
| First published | 2012-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Raynos |
| Maintainers | feross |
| Keywords | reemit, re emit, re-emit, reemitter, filter events, events, emitter |

## Links

- npm: https://www.npmjs.com/package/re-emitter
- Repository: https://github.com/feross/re-emitter
- Issues: https://github.com/feross/re-emitter/issues
- npm.io page: https://npm.io/package/re-emitter

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.1.4 (latest) — 2019-06-28
- 1.1.3 — 2016-03-11
- 1.1.2 — 2016-02-24
- 1.1.1 — 2015-05-05
- 1.1.0 — 2015-04-08
- 1.0.0 — 2014-07-23
- 0.3.0 — 2012-12-07
- 0.2.0 — 2012-09-09
- 0.1.0 — 2012-08-30
- 0.0.1 — 2012-08-28

## README

# re-emitter [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

[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

![reemit](https://raw.githubusercontent.com/feross/re-emitter/master/img.jpg)

[![Sauce Test Status](https://saucelabs.com/browser-matrix/magnet-uri.svg)](https://saucelabs.com/u/magnet-uri)

Works in node and the browser with [browserify](http://browserify.org/).

[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

### install

```
npm install re-emitter
```

### usage

```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.

### contributors

- Raynos
- Feross

### license

MIT. Copyright (c) Raynos.

---
_Source: https://npm.io/package/re-emitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
