Skip to main content
internal.Readable.fromWeb - node__stream.d.ts - Node documentation
method internal.Readable.fromWeb
Unstable

Usage in Deno

```typescript import { internal } from "node:node__stream.d.ts"; ```
Readable.fromWeb(
readableStream: streamWeb.ReadableStream,
options?: Pick<ReadableOptions,
"encoding"
| "highWaterMark"
| "objectMode"
| "signal"
>
,
): Readable
A utility method for creating a `Readable` from a web `ReadableStream`.

Parameters

readableStream: streamWeb.ReadableStream
optional
options: Pick<ReadableOptions,
"encoding"
| "highWaterMark"
| "objectMode"
| "signal"
>

Return Type