Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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. 👜
- Host: GitHub
- URL: https://github.com/zebulonj/callbag-pump
- Owner: zebulonj
- License: mit
- Created: 2018-02-07T05:38:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-14T06:09:15.000Z (almost 6 years ago)
- Last Synced: 2024-10-09T09:47:29.975Z (about 1 month ago)
- Topics: callbag, rx
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-callbags - pump
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
```