Skip to main content

TransformStream

The TransformStream interface of the Streams API represents a concrete implementation of the pipe chain transform stream concept.

MDN Reference

Type Parameters

Type ParameterDefault type
Iany
Oany

Properties

readable

readonly readable: ReadableStream<O>;

The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream. This stream emits the transformed output data.

MDN Reference


writable

readonly writable: WritableStream<I>;

The writable read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream. This stream accepts input data that will be transformed and emitted to the readable stream.

MDN Reference