@@ -341,6 +341,23 @@ reader.pipe(writer);
341341reader .unpipe (writer);
342342```
343343
344+ ##### writable.acquireStandardStream()
345+ <!-- YAML
346+ added: REPLACEME
347+ -->
348+
349+ > Stability: 1 - Experimental
350+
351+ * Returns: {WritableStream} to feed this stream.
352+
353+ ``` js
354+ const fs = require (' fs' );
355+
356+ const stream = fs .createWriteStream (' file' ).acquireStandardStream ();
357+ const writer = stream .getWriter ();
358+ writer .write (' hi!' );
359+ ```
360+
344361##### writable.cork()
345362<!-- YAML
346363added: v0.11.2
@@ -827,6 +844,22 @@ If both `'readable'` and [`'data'`][] are used at the same time, `'readable'`
827844takes precedence in controlling the flow, i.e. ` 'data' ` will be emitted
828845only when [ ` stream.read() ` ] [ stream-read ] is called.
829846
847+ ##### readable.acquireStandardStream()
848+ <!-- YAML
849+ added: REPLACEME
850+ -->
851+
852+ > Stability: 1 - Experimental
853+
854+ * Returns: {ReadableStream} to fully consume the stream.
855+
856+ ``` js
857+ const fs = require (' fs' );
858+
859+ const stream = fs .createReadStream (' file' ).acquireStandardStream ();
860+ const reader = stream .getReader ();
861+ ```
862+
830863##### readable.destroy([ error] )
831864<!-- YAML
832865added: v8.0.0
@@ -1266,6 +1299,26 @@ Examples of `Duplex` streams include:
12661299* [ zlib streams] [ zlib ]
12671300* [ crypto streams] [ crypto ]
12681301
1302+ ##### duplex.acquireStandardStream
1303+ <!-- YAML
1304+ added: REPLACEME
1305+ -->
1306+
1307+ > Stability: 1 - Experimental
1308+
1309+ * Returns {Object}
1310+ * ` readable ` {ReadableStream}
1311+ * ` writable ` {WritableStream}
1312+
1313+ Creates a WHATWG stream pair to represent this duplex stream.
1314+
1315+ ``` js
1316+ const stream = getDuplexSomehow ();
1317+ const { readable , writable } = stream .acquireStandardStream ();
1318+ readable .getReader ();
1319+ writable .getWriter ();
1320+ ```
1321+
12691322#### Class: stream.Transform
12701323<!-- YAML
12711324added: v0.9.4
@@ -2200,6 +2253,15 @@ by [`stream._transform()`][stream-_transform]. The `'end'` event is emitted
22002253after all data has been output, which occurs after the callback in
22012254[ ` transform._flush() ` ] [ stream-_flush ] has been called.
22022255
2256+ ##### transform.acquireStandardStream()
2257+ <!-- YAML
2258+ added: REPLACEME
2259+ -->
2260+
2261+ > Stability: 1 - Experimental
2262+
2263+ * Returns: {TransformStream}
2264+
22032265#### transform.\_ flush(callback)
22042266
22052267* ` callback ` {Function} A callback function (optionally with an error
0 commit comments