@ende/streams/batch-stream

ende add jsr:@ende/streams

Version 2026.10.15 on JSR.

Exports

  • BatchStream — A TransformStream that groups input chunks into fixed-size batches. Emits a `T[]` once `size` input chunks have been collected and flushes any final non-empty partial batch when the input closes.