Files
Spencer Pincott 97737ca1ae Initial commit
2024-07-15 22:20:13 -04:00

17 lines
349 B
Markdown

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
```javascript
var batch = new BatchStream({ size : 5 });
stream
.pipe(batch)
.pipe(new ArrayStream()); // deals with array input from pipe.
```