Skip to content
DocsGuidesReferenceBlog
Install
HomeDocsGuidesReferenceBlog
Install Bun v1.4.0
Reference
Modules/node:stream/promises
  • Ffinished
  • Fpipeline

Modules

  • Bun
  • bun:bundle
  • bun:ffi
  • bun:jsc
  • bun:sqlite
  • bun:test
  • Globals
  • node:assert
  • node:async_hooks
  • node:buffer
  • node:child_process
  • node:cluster
  • node:crypto
  • node:dgram
  • node:diagnostics_channel
  • node:dns
  • node:dns/promises
  • node:events
  • node:ffi
  • node:fs
  • node:fs/promises
  • node:http
  • node:http2
  • node:https
  • node:inspector
  • node:inspector/promises
  • node:module
  • node:net
  • node:os
  • node:path
  • node:perf_hooks
  • node:punycode
  • node:querystring
  • node:quic
  • node:readline
  • node:readline/promises
  • node:stream
  • node:stream/consumers
  • node:stream/iter
  • node:stream/promises
  • node:stream/web
  • node:string_decoder
  • node:test
  • node:test/reporters
  • node:timers/promises
  • node:tls
  • node:trace_events
  • node:tty
  • node:url
  • node:util
  • node:util/types
  • node:v8
  • node:vm
  • node:wasi
  • node:worker_threads
  • node:zlib
  • node:zlib/iter

Node.js module

stream/promises

The 'node:stream/promises' submodule provides Promise-based stream utility functions such as pipeline and finished, enabling async/await syntax for stream completion and pipeline composition.

Use it to coordinate multiple streams and handle errors cleanly in async code.

Functions 2Interfaces 2Types 1

Functions 2

  • promises.finished()

    ``js import { finished } from 'node:stream/promises'; import { createReadStream } from 'node:fs'

  • promises.pipeline()

    ``js import { pipeline } from 'node:stream/promises'; import { createReadStream, createWriteStream } from 'node:fs'; import { createGzip } from 'node:zlib'

Interfaces 2

  • interface FinishedOptions

  • interface PipelineOptions

Types 1

  • type PipelineResult