Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/staltz/callbag-observe

👜 Callbag listener sink that receives data from any listenable source
https://github.com/staltz/callbag-observe

Last synced: about 2 months ago
JSON representation

👜 Callbag listener sink that receives data from any listenable source

Awesome Lists containing this project

README

        

# callbag-observe

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

`npm install callbag-observe`

## example

```js
const interval = require('callbag-interval');
const observe = require('callbag-observe');

const source = interval(1000);

observe(x => console.log(x))(source); // 0
// 1
// 2
// 3
// ...
```