# proxy-events

> Proxy events from one emitter to another.

Latest version **0.0.1** (published 2013-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install proxy-events
pnpm add proxy-events
yarn add proxy-events
bun add proxy-events
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-12-11 |
| First published | 2013-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | segmentio |
| Keywords | events, emitter, proxy, forward |

## Links

- npm: https://www.npmjs.com/package/proxy-events
- Repository: https://github.com/segmentio/proxy-events
- Issues: https://github.com/segmentio/proxy-events/issues
- npm.io page: https://npm.io/package/proxy-events

## Dependencies (1)

- [wildcards](https://npm.io/package/wildcards.md) ~1.0.0

## 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

- 0.0.1 (latest) — 2013-12-11

## README

# proxy-events

  Proxy events from one emitter to another.

  [![Build Status](https://travis-ci.org/segmentio/proxy-events.png?branch=master)](https://travis-ci.org/segmentio/proxy-events)

## Installation

```
$ npm install proxy-events
$ component install segmentio/proxy-events
```

## Example

```js
var Emitter = require('events').EventEmitter;
var proxy = require('proxy-events');

var app = new Emitter;
var subapp = new Emitter;

proxy(subapp, app);

app.on('foo', console.log);

subapp.emit('foo', 'bar');
// "bar"
```

## API

### proxy(one, another, [prefix])

  Proxy events from `one` emitter to `another` with an optional `prefix`.

# License

  MIT

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