rx-intent

A Rx.Subject helper to manage intention in convenient way

Usage no npm install needed!

<script type="module">
  import rxIntent from 'https://cdn.skypack.dev/rx-intent';
</script>

README

Build Status Coverage Status NPM version Downloads

Rx Intent

A more convenient way to use Rx Subject

usage

var intent = new Intent('hello');

// intent.hellos is an instance of Rx.Observable
intent.hellos.subscribe(function (name) {
    console.log('hello %s', name);
})

intent.hello('world');
> hello world