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).
Copies from src to dst until either EOF (null) is read from src or
an error occurs. It resolves to the number of bytes copied or rejects with
the first error encountered while copying.
Disposition of the delimiter.
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. If a stream ends before other ones, the others will be cancelled.
Turns a Reader, r, into an async iterator.
Turns a ReaderSync, r, into an iterator.
A TransformStream that will only read & enqueue size amount of bytes.
This operation is chunk based and not BYOB based,
and as such will read more than needed.
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<Uint8Array> from a Reader.
Read Reader r until EOF (null) and resolve to the content as
Uint8Array`.
Synchronously reads Reader r until EOF (null) and returns the content
as Uint8Array.
Create a Reader from an iterable of Uint8Arrays.
Create a Reader from a ReadableStreamDefaultReader.
Transform a stream 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.
Convert the generator function into a TransformStream.
Create a WritableStream from a Writer.
Write all the content of the array buffer (arr) to the writer (w).
Synchronously write all the content of the array buffer (arr) to the
writer (w).
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. If a stream ends before other ones, the others will continue adding data in order, and the finished one will not add any more data.
A transform stream that only transforms from the zero-indexed start and end bytes (both inclusive).
Copies from src to dst until either EOF (null) is read from src or
an error occurs. It resolves to the number of bytes copied or rejects with
the first error encountered while copying.
Disposition of the delimiter.
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. If a stream ends before other ones, the others will be cancelled.
Turns a Reader, r, into an async iterator.
Turns a ReaderSync, r, into an iterator.
A TransformStream that will only read & enqueue size amount of bytes.
This operation is chunk based and not BYOB based,
and as such will read more than needed.
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.
Read Reader r until EOF (null) and resolve to the content as
Uint8Array`.
Synchronously reads Reader r until EOF (null) and returns the content
as Uint8Array.
Create a ReadableStream<Uint8Array> from a Reader.
Create a Reader from an iterable of Uint8Arrays.
Create a Reader from a ReadableStreamDefaultReader.
Transform a stream 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.
Convert the generator function into a TransformStream.
Create a WritableStream from a Writer.
Write all the content of the array buffer (arr) to the writer (w).
Synchronously write all the content of the array buffer (arr) to the
writer (w).
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. If a stream ends before other ones, the others will continue adding data in order, and the finished one will not add any more data.