# rx-pub-sub

> RxJS PubSub

Latest version **1.0.0** (published 2016-02-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install rx-pub-sub
pnpm add rx-pub-sub
yarn add rx-pub-sub
bun add rx-pub-sub
```

## 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.0.0 |
| Published | 2016-02-24 |
| First published | 2016-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Wilcox |
| Maintainers | mikedub |
| Keywords | rx, publish, subscribe, javascript |

## Links

- npm: https://www.npmjs.com/package/rx-pub-sub
- npm.io page: https://npm.io/package/rx-pub-sub

## Dependencies (4)

- [rxjs](https://npm.io/package/rxjs.md) ^5.0.0-beta.2
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.5.1
- [invariant](https://npm.io/package/invariant.md) ^2.2.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.5.0

## Recent versions

- 1.0.0 (latest) — 2016-02-24

## README

# rx-pub-sub

A tiny publish/subscribe library that utilizes RxJS Subject's.

# Usage

```js
import Emitter from 'rx-pub-sub';

const emitter = new Emitter();

emitter.subscribe('custom-event', (e) => console.log(e));

emitter.publish('custom-event', 'hello world!');
```

# Hack

```bash
$ git clone https://github.com/mjw56/rx-pub-sub
$ npm install
$ npm run build
```

# LICENSE

MIT

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