@ende/streams/limited-bytes-transform-stream

ende add jsr:@ende/streams

Version 2026.10.15 on JSR.

Exports

  • LimitedBytesTransformStream — A TransformStream that will only read & enqueue chunks until the total amount of enqueued data exceeds `size`. The last chunk that would exceed the limit will NOT be enqueued, in which case a RangeError is thrown when `options.error` is set to true, otherwise the stream is just terminated.
  • LimitedBytesTransformStreamOptions — Options for LimitedBytesTransformStream.