hyperfeed-merge
v2.3.0
Published
merge multiple hyperfeed into one
Downloads
2
Readme
hyperfeed-merge
Merge multiple hyperfeed into one.
npm i hyperfeed-merge
Synopsis
const merge = require('hyperfeed-merge')
var hf = hyperfeed()
var feed1 = hf.createFeed()
var feed2 = hf.createFeed()
var out = hf.createFeed()
merge([feed1, feed2], out) // all updates to feed1 and feed2 will be merged into this feed
feed1.push({title: 'foo'}) // **caution**: this promise will be resolved **before** item is pushed into `out`
// use list({live: true}) to get merged output since we can't sure when it will be merged
API
merge(feeds, out)
Merge feeds into one out
feed.
License
The MIT License