DecompressionStream: readable property

The readable read-only property of the DecompressionStream interface returns a ReadableStream.

Value

Examples

The following example returns a ReadableStream from a DecompressionStream.

js

let stream = new DecompressionStream("gzip");
console.log(stream.readable); //a ReadableStream

Specifications

Specification
Streams Standard
# dom-generictransformstream-readable

Browser compatibility

BCD tables only load in the browser