pull-json-collate
v0.1.0
Published
Collate json objects and send them downstream.
Downloads
1
Readme
pull-json-collate
Collate json objects and send them downstream.
This pull-stream
is combination of a Sink and a Through. It will sink all the objects from upstream, once upstream
reached it's end, it'll send downstream a combined object.
Example
var pull = require("pull-stream");
var jsonCollateStream = require("pull-json-collate");
var objects = [
{a:"a"},
{b:"b"}
]
pull(
pull.values(objects),
jsonCollateStream(),
pull.drain(console.log)
)
Result:
{ a: 'a', b: 'b' }
install
With npm do:
npm install pull-json-collate
license
MIT