buffer-json-stream

0.1.6 • Public • Published

buffer-json-stream

Buffer streaming JSON. Readable stream pipes in chunks of JSON, buffer-json-stream pipes out all that JSON buffered into one stream chunk.

Install

npm install buffer-json-stream --save

Usage

Use as a normal Transform stream.

 
/*
In:
 
Chunk: { some: 'object' }
Chunk: { someOther: 'object' }
 
*/
 
someReadableStream.
  pipe(bufferJsonStream()). // Magic right there
  pipe(process.stdout);
 
/*
Out:
 
Chunk: [
  {
    some: 'object'
  },
  {
    someOther: 'object'
  }
]
*/
 

Dependents (0)

Package Sidebar

Install

npm i buffer-json-stream

Weekly Downloads

0

Version

0.1.6

License

MIT

Last publish

Collaborators

  • scottcorgan