rx-pub-sub

v1.0.0
RxJS PubSub
rx publish subscribe javascript

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

npm i rx-pub-sub

Metadata

  • MIT
  • Whatever
  • Mike Wilcox
  • released 2/24/2016

Downloads

Maintainers