Transform a stream into batches

npm install batch-stream
3 downloads in the last day
13 downloads in the last week
51 downloads in the last month

Batch Stream

Transform stream which batches a bunch of input data into groups of specified size. Will emit arrays, so that you can deal with pieces of input asynchronously.


var batch = new BatchStream({ size : 5 });

  .pipe(new ArrayStream()); // deals with array input from pipe.
npm loves you