Skip to main content

@std/io@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)

Functions

f
toReadableStream(
reader: Reader | (Reader & Closer),
unnamed 1?: ToReadableStreamOptions
): ReadableStream<Uint8Array>

Create a ReadableStream of Uint8Arrays from a Reader.

Interfaces

  • autoClose: boolean

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

  • 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.

  • strategy: QueuingStrategy<Uint8Array>

    The queuing strategy to create the ReadableStream with.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/io

Import symbol

import * as mod from "@std/io/to_readable_stream";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/io/to_readable_stream";