stream.pipeline()

A Node.js function that connects streams in a chain, handles backpressure, and destroys every stream in the chain if any of them fails.

In more detail

The promise version from node:stream/promises is awaited: await pipeline(source, transform, destination). Passing { signal } lets an AbortController cancel the whole chain.

Related terms

Taught in

References