Streams API: piping

ReadableStream's pipeTo() is the standard way to compose readable and writable streams. It reads data from the ReadableStream and writes it to a WritableStream while respecting backpressure. pipeThrough() is a simple wrapper around pipeTo() that provides elegant syntax for chaining multiple streams.

Demo

Specification

Working draft or equivalent

Status in Chromium

Blink>Network>Streams API


Enabled by default (launch bug) in:

  • Chrome for desktop release 59
  • Chrome for Android release 59
  • Android WebView release 59
  • Opera release 46
  • Opera for Android release 46

Consensus & Standardization

  • Public support
  • No public signals
  • Shipped
  • Positive

Owners

Last updated on 2017-06-14