Skip to content

A callbag operator that turns a pullable source into a listenable source. ๐Ÿ‘œ

License

Notifications You must be signed in to change notification settings

zebulonj/callbag-pump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

callbag-pump ๐Ÿ‘œ

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

npm install callbag-pump

Usage:

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

About

A callbag operator that turns a pullable source into a listenable source. ๐Ÿ‘œ

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published