batch-stream
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/batch-stream package

0.1.3 • Public • Published

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.
 

Package Sidebar

Install

npm i batch-stream

Weekly Downloads

30,143

Version

0.1.3

License

MIT

Last publish

Collaborators

  • segment-admin
  • segmentio