rx-pub-sub

1.0.0 • Public • Published

rx-pub-sub

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

Usage

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

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

LICENSE

MIT

Package Sidebar

Install

npm i rx-pub-sub

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mikedub