batch-stream

Transform a stream into batches

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
batch-stream
0.1.36 years ago9 years agoMinified + gzip package size for batch-stream in KB

Readme

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.

Usage

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

stream
  .pipe(batch)
  .pipe(new ArrayStream()); // deals with array input from pipe.