JSPM

pull-json-collate

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q15839F

Collate json objects and send them downstream.

Package Exports

  • pull-json-collate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-json-collate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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