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'
  }
]
*/
 

/buffer-json-stream/

    Package Sidebar

    Install

    npm i buffer-json-stream

    Weekly Downloads

    1

    Version

    0.1.6

    License

    MIT

    Last publish

    Collaborators

    • scottcorgan