Skip to main content
internal.Duplex.toWeb - node__stream.d.ts - Node documentation
method internal.Duplex.toWeb
Unstable

Usage in Deno

```typescript import { internal } from "node:node__stream.d.ts"; ```
Duplex.toWeb(streamDuplex: Duplex): { readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }
A utility method for creating a web `ReadableStream` and `WritableStream` from a `Duplex`.

Parameters

streamDuplex: Duplex

Return Type

{ readable: streamWeb.ReadableStream; writable: streamWeb.WritableStream; }