Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,34 @@ functions for streams that return `Promise` objects rather than using
callbacks. The API is accessible via `require('node:stream/promises')`
or `require('node:stream').promises`.

### `stream.pipeline(source[, ...transforms], destination, options)`

### `stream.pipeline(streams, options)`
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved

* `streams` {Stream\[]|Iterable\[]|AsyncIterable\[]|Function\[]}
* `source` {Stream|Iterable|AsyncIterable|Function}
* Returns: {Promise<AsyncIterable>}
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved
* `...transforms` {Stream|Function}
* `source` {AsyncIterable}
* Returns: {Promise<AsyncIterable>}
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved
* `destination` {Stream|Function}
* `source` {AsyncIterable}
* Returns: {Promise<AsyncIterable>}
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved
* `options` {Object}
* `signal` {AbortSignal}
* `end` {boolean}
* Returns: {Promise<void>}
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved

### `stream.finished(stream, options)`
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved

* `stream` {Stream}
* `options` {Object}
* `error` {boolean|undefined}
* `readable` {boolean|undefined}
* `writable` {boolean|undefined}
* `signal`: {AbortSignal|undefined}
* Returns: {Promise<void>}
Comment thread
marco-ippolito marked this conversation as resolved.
Resolved

### Object mode

All streams created by Node.js APIs operate exclusively on strings and `Buffer`
Expand Down