# emit-function

> because i get tired of typing EE.prototype.emit.bind.bind(EE.prototype.emit)

Latest version **0.0.2** (published 2013-03-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install emit-function
pnpm add emit-function
yarn add emit-function
bun add emit-function
```

## 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.2 |
| Published | 2013-03-02 |
| First published | 2013-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | emit, function |

## Links

- npm: https://www.npmjs.com/package/emit-function
- Repository: https://github.com/chrisdickinson/emit-function
- npm.io page: https://npm.io/package/emit-function

## 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.2 (latest) — 2013-03-02
- 0.0.1 — 2013-03-02
- 0.0.0 — 2013-03-02

## README

# emit-function

because I hate having to import `EventEmitter` and
call `EventEmitter.prototype.emit.bind.bind(EventEmitter.prototype.emit)`.

```javascript

var EE = require('events').EventEmitter
  , emit = require('emit-function')

var ee_1 = new EE
  , ee_2 = new EE

ee_1.on('data', emit(ee_2, 'data'))

```

## api

#### emit(eventemitter, eventName[, curryArg1...curryArgN]) -> function

Creates a function that, when called, calls `emit` on `eventemitter`
with `eventName`. Curried args are placed at the front, args added by
calling the function are added after the curried args. Allows easy
forwarding of events from emitter to emitter.

# license

MIT

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