diff --git a/doc/api/stream.md b/doc/api/stream.md index 96f0650ac07f13..b16c5e3bd0f707 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2080,7 +2080,7 @@ for performance reasons. ### `stream.Readable.fromWeb(readableStream[, options])` > Stability: 1 - Experimental @@ -2093,6 +2093,41 @@ added: v16.11.0 * `signal` {AbortSignal} * Returns: {stream.Readable} +### `stream.Readable.toWeb(streamReadable)` + + +> Stability: 1 - Experimental + +* `streamReadable` {stream.Readable} +* Returns: {ReadableStream} + +### `stream.Writable.fromWeb(writableStream[, options])` + + +> Stability: 1 - Experimental + +* `writableStream` {WritableStream} +* `options` {Object} + * `decodeStrings` {boolean} + * `highWaterMark` {number} + * `objectMode` {boolean} + * `signal` {AbortSignal} +* Returns: {stream.Writable} + +### `stream.Writable.toWeb(streamWritable)` + + +> Stability: 1 - Experimental + +* `streamWritable` {stream.Writable} +* Returns: {WritableStream} + ### `stream.Readable.isDisturbed(stream)` + +> Stability: 1 - Experimental + +* `pair` {Object} + * `readable` {ReadableStream} + * `writable` {WritableStream} +* `options` {Object} + * `allowHalfOpen` {boolean} + * `decodeStrings` {boolean} + * `encoding` {string} + * `highWaterMark` {number} + * `objectMode` {boolean} + * `signal` {AbortSignal} +* Returns: {stream.Duplex} + +### `stream.Duplex.toWeb(streamDuplex)` + + +> Stability: 1 - Experimental + +* `streamDuplex` {stream.Duplex} +* Returns: {Object} + * `readable` {ReadableStream} + * `writable` {WritableStream} + ### `stream.addAbortSignal(signal, stream)`