API reference

Operator index

Find the complete public API by intent. Every page covers signatures, accepted values and defaults, execution, pressure, memory, context, errors, cancellation, runtimes, forms, and edge cases that change real behavior.

Create

  • exstream() — adapt iterables, promises, platform streams, generators, or a writable source
  • fromEvent() — adapt hot EventTarget and EventEmitter sources
  • pipeline() — define a reusable typed operator chain
  • data() and nil — distinguish data from error and end control records

Context

  • withContext() and extendContext() — attach synchronous or asynchronous record metadata
  • Stream state — inspect lifecycle, buffering, drops, pressure, and cancellation
  • Events — observe errors, aborts, completion, fatal failures, and drain

Transform

Select

Aggregate and order

Async work

Flow control

Branch and combine

  • fork() — create a reliable branch participating in backpressure
  • observe() — create a non-blocking, explicitly buffered observer
  • merge() — consume a stream of streams with bounded parallelism
  • through() — attach a pipeline, stream, function, or Node transform
  • sortedJoin() — merge-join exactly two pre-sorted streams

Errors

Formats

Consume

Low-level API