Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Utilities for working with the Web Streams API
default
Utilities for working with the Streams API.
A transform stream that only transforms from the zero-indexed start and
end bytes (both inclusive).
Concatenates multiple ReadableStreams into a single ordered
ReadableStream.
Disposition of the delimiter for DelimiterStreamOptions.
Divide a stream into chunks delimited by a given byte sequence.
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk.
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.
A TransformStream that will only read & enqueue size amount of
chunks.
Merge multiple streams into a single one, not taking order into account. If a stream ends before other ones, the other will continue adding data, and the finished one will not add any more data.
Transform a stream string into a stream where each chunk is divided by a
given delimiter.
Transform a stream into a stream where each chunk is divided by a newline,
be it \n or \r\n. \r can be enabled via the allowCR option.
Converts a ReadableStream of Uint8Arrays to an
ArrayBuffer. Works the same as Response.arrayBuffer.
Converts a ReadableStream of Uint8Arrays to a
Blob. Works the same as Response.blob.
Converts a JSON-formatted ReadableSteam of strings or
Uint8Arrays to an object. Works the same as
Response.json.
Converts a ReadableSteam of strings or Uint8Arrays
to a single string. Works the same as Response.text.
Convert the generator function into a TransformStream.
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk.
Turns a Reader, r, into an async iterator.
Turns a ReaderSync, r, into an iterator.
Create a ReadableStream of Uint8Arrays from a
Reader.
Create a Reader from an iterable of Uint8Arrays.
Create a Reader from a ReadableStreamDefaultReader.
Create a WritableStream from a Writer.
Create a Writer from a WritableStreamDefaultWriter.
A transform stream that only transforms from the zero-indexed start and
end bytes (both inclusive).
Concatenates multiple ReadableStreams into a single ordered
ReadableStream.
Disposition of the delimiter for DelimiterStreamOptions.
Divide a stream into chunks delimited by a given byte sequence.
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk.
Turns a Reader, r, into an async iterator.
Turns a ReaderSync, r, into an iterator.
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.
A TransformStream that will only read & enqueue size amount of
chunks.
Merge multiple streams into a single one, not taking order into account. If a stream ends before other ones, the other will continue adding data, and the finished one will not add any more data.
Create a ReadableStream of Uint8Arrays from a
Reader.
Create a Reader from an iterable of Uint8Arrays.
Create a Reader from a ReadableStreamDefaultReader.
Transform a stream string into a stream where each chunk is divided by a
given delimiter.
Transform a stream into a stream where each chunk is divided by a newline,
be it \n or \r\n. \r can be enabled via the allowCR option.
Converts a ReadableStream of Uint8Arrays to an
ArrayBuffer. Works the same as Response.arrayBuffer.
Converts a ReadableStream of Uint8Arrays to a
Blob. Works the same as Response.blob.
Converts a JSON-formatted ReadableSteam of strings or
Uint8Arrays to an object. Works the same as
Response.json.
Converts a ReadableSteam of strings or Uint8Arrays
to a single string. Works the same as Response.text.
Convert the generator function into a TransformStream.
Create a WritableStream from a Writer.
Create a Writer from a WritableStreamDefaultWriter.
Merge multiple streams into a single one, taking order into account, and each stream will wait for a chunk to enqueue before the next stream can append another chunk.