CompressionStream.readable

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

Syntax

let stream = CompressionStream.readable;

Value

A ReadableStream.

Examples

The following example returns a ReadableStream from a CompressionStream.

let stream = new CompressionStream('gzip');
console.log(stream.readable); //a ReadableStream

Specifications

Specification Status Comment
Streams
The definition of 'readable' in that specification.
Living Standard Initial definition.

Browser compatibility

BCD tables only load in the browser