Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zebulonj/callbag-pump

A callbag operator that turns a pullable source into a listenable source. 👜
https://github.com/zebulonj/callbag-pump

callbag rx

Last synced: 18 days ago
JSON representation

A callbag operator that turns a pullable source into a listenable source. 👜

Awesome Lists containing this project

README

        

# callbag-pump 👜

A callbag operator that turns a pullable source into a listenable source. Weighs 110 bytes (minified & gzipped).

`npm install callbag-pump`

## Usage:

```js
import pipe from 'callbag-pipe';
import fromIter from 'callbag-from-iter';
import observe from 'callbag-observe';
import pump from 'callbag-pump';

const source = fromIter([10, 20, 30]);

pipe(
source,
pump,
observe(val => console.log( val ))
);

// 10
// 20
// 30
```