TransformStream.readable

The readable read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.

Value

A ReadableStream.

Examples

The following example creates a new TransformStream as textEncoderStream, and prints the value of readable to the console.

const textEncoderStream = new TransformStream();
console.log(textEncoderStream.readable) // a ReadableStream

Specifications

Specification
Streams Standard
# ref-for-ts-readableā‘”

Browser compatibility

BCD tables only load in the browser