Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/fw/generator/deps.ts>streams.ReadableStreamFromReaderOptions

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface streams.ReadableStreamFromReaderOptions
Deprecated
Deprecated

(will be removed after 0.169.0) Import from std/streams/readable_stream_from_reader.ts instead.

import { type streams } from "https://deno.land/x/hex@0.6.5/src/fw/generator/deps.ts";
const { ReadableStreamFromReaderOptions } = streams;

Properties

optional
autoClose: boolean = true

If the reader is also a Deno.Closer, automatically close the reader when EOF is encountered, or a read error occurs.

optional
chunkSize: number

The size of chunks to allocate to read, the default is ~16KiB, which is the maximum size that Deno operations can currently support.

optional
strategy: { highWaterMark?: number | undefined; size?: undefined; }

The queuing strategy to create the ReadableStream with.