# birch-event-emitter

> Simple Event Emitter

Latest version **1.2.3** (published 2021-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install birch-event-emitter
pnpm add birch-event-emitter
yarn add birch-event-emitter
bun add birch-event-emitter
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2021-05-10 |
| First published | 2019-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Tinia Labs |
| Maintainers | guycreate |
| Keywords | right, click, custom, context, menu, react, react-birch, tinia |

## Links

- npm: https://www.npmjs.com/package/birch-event-emitter
- Repository: https://github.com/tinialabs/react-birch
- Homepage: https://github.com/tinialabs/react-birch#readme
- Issues: https://github.com/tinialabs/react-birch#issues
- npm.io page: https://npm.io/package/birch-event-emitter

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2021-05-10
- 1.2.2 — 2020-12-07
- 1.2.1 — 2020-12-06
- 1.2.0 — 2020-11-21
- 1.1.1 — 2020-02-23
- 1.1.0 — 2020-02-23
- 1.0.5 — 2019-12-03
- 1.0.4 — 2019-06-23
- 1.0.1 — 2019-04-26

## README

# birch-event-emitter

## A simpler event emitter for the browser

Features include:

 - Event subscriptions return a `Disposable` object with `dispose()` method to unsubscribe from event.
 - Group event subscriptions using `DisposablesComposite` and dispose them all with one call, i.e `DisposableComposite#dispose()`
 - Listeners voice matters!! You can now dispatch an event using `EventEmitter#emithWithReturn` where each listener's return value can be accessed from returned array.


## Motivation

Forked from `Notificar`

* Included as a core dependency of `react-birch` directly in the mono repository
* Replaces functionality used in some of the original `tiny-emitter` in the `react-aspen` dependencies to avoid unnecessary inclusion of duplicate functionality implemented in different ways
* Transpiled to typescript
* Standard to standard verbs `on`, `emit` instead of `add`, `dispatch`

## License

MIT

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