# pull-notify

> Notify many listeners via pull-streams.

Latest version **0.1.2** (published 2021-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-notify
pnpm add pull-notify
yarn add pull-notify
bun add pull-notify
```

## 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.1.2 |
| Published | 2021-11-04 |
| First published | 2015-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Dominic Tarr |
| Maintainers | dominictarr, staltz, arj03 |

## Links

- npm: https://www.npmjs.com/package/pull-notify
- Repository: https://github.com/dominictarr/pull-notify
- Issues: https://github.com/dominictarr/pull-notify/issues
- npm.io page: https://npm.io/package/pull-notify

## Dependencies (1)

- [pull-pushable](https://npm.io/package/pull-pushable.md) ^2.0.0

## Recent versions

- 0.1.2 (latest) — 2021-11-04
- 0.1.1 — 2016-06-27
- 0.1.0 — 2016-04-09
- 0.0.2 — 2015-12-09
- 0.0.0 — 2015-06-27

## README

# pull-notify

Notify many listeners via pull-streams.

you could use when you might otherwise use an event emitter.
Why not just use an event emitter? EventEmitters have a weird
security contract: anyone who can listen can also emit,
and they can emit or listen to any events!

Instead, events should travel down a single channel,
and the ability to emit an event should be separated from
the ability to listen.


``` js
var Notify = require('pull-notify')

var notify = Notify()

//create a pull stream that listens on events.
//it will eventually get all events.
pull(notify.listen(), pull.drain((evt) => console.log(evt)))

notify('hello') //emit an event.

notify.end() //tell all listeners it's over.
```

listers can abort (using the normal pull-stream abort),
and that will remove them from the list.


## License

MIT

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