callbag-observe

1.0.0 • Public • Published

callbag-observe

Callbag listener sink that gets data from any listenable source. Think of it as "observable.subscribe".

npm install callbag-observe

example

const interval = require('callbag-interval');
const observe = require('callbag-observe');
 
const source = interval(1000);
 
observe(x => console.log(x))(source); // 0
                                      // 1
                                      // 2
                                      // 3
                                      // ...

Readme

Keywords

Package Sidebar

Install

npm i callbag-observe

Weekly Downloads

643

Version

1.0.0

License

MIT

Last publish

Collaborators

  • staltz