Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Andarist/callbag-of
👜 Callbag source factory that emits values specified as arguments.
https://github.com/Andarist/callbag-of
callbag callbags
Last synced: 3 months ago
JSON representation
👜 Callbag source factory that emits values specified as arguments.
- Host: GitHub
- URL: https://github.com/Andarist/callbag-of
- Owner: Andarist
- Created: 2018-04-19T14:01:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T23:27:58.000Z (almost 4 years ago)
- Last Synced: 2024-10-10T23:35:21.730Z (3 months ago)
- Topics: callbag, callbags
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-callbags - of
README
# callbag-of
Callbag source factory that emits values specified as arguments. It's similar to [`fromIter`](https://github.com/staltz/callbag-from-iter/), but this one creates a listenable source and does not rely on iteration protol.
## Example
```js
import observe from 'callbag-observe'
import of from 'callbag-of'
import pipe from 'callbag-pipe'pipe(
of(1, 2, 3, 4, 5),
observe(value => {
// will log 1, 2, 3, 4, 5
console.log(value)
}),
)
```