Newton's Principia Mathematica

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

    Keywords

    none

    Install

    npm i buffer-json-stream

    DownloadsWeekly Downloads

    3

    Version

    0.1.6

    License

    MIT

    Last publish

    Collaborators

    • scottcorgan