diff --git a/doc/api/stream.md b/doc/api/stream.md index 8096f1b6f94e7e..ca37c0e0b7ce71 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2166,6 +2166,57 @@ added: v16.8.0 Returns whether the stream has been read from or cancelled. +### `stream.isErrored(stream)` + + + +> Stability: 1 - Experimental + +* `stream` {Readable|Writable|Duplex|WritableStream|ReadableStream} +* Returns: {boolean} + +Returns whether the stream has encountered an error. + +### `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.Duplex.from(src)`