Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortxxnano <warkanlock@gmail.com>2022-07-13 13:14:38 +0300
committerGitHub <noreply@github.com>2022-07-13 13:14:38 +0300
commit99b109f7f367c61c1524e8278a8277740b0ce0d1 (patch)
tree5b32f93ff12230c59b4db7ca48f0e4aab30e1673 /doc/api/stream.md
parent90bc773fb8e45333a96667e87ac887757911631e (diff)
stream: initial approach to include strategy options on Readable.toWeb()
PR-URL: https://github.com/nodejs/node/pull/43515 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 0eb3e2a785c..c4d90e40b51 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -2807,7 +2807,7 @@ added:
Returns whether the stream is readable.
-### `stream.Readable.toWeb(streamReadable)`
+### `stream.Readable.toWeb(streamReadable[, options])`
<!-- YAML
added: v17.0.0
@@ -2816,6 +2816,10 @@ added: v17.0.0
> Stability: 1 - Experimental
* `streamReadable` {stream.Readable}
+* `options` {Object}
+ * `strategy` {Object}
+ * `highWaterMark` {number}
+ * `size` {Function}
* Returns: {ReadableStream}
### `stream.Writable.fromWeb(writableStream[, options])`