Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

segmentio/batch-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Transform a stream into batched items.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •