CompressionStream.writable

The writable read-only property of the CompressionStream interface returns a WritableStream.

Syntax

let writableStream = CompressionStream.writable;

Value

A WritableStream.

Examples

The following example returns a WritableStream from a CompressionStream.

let stream = new CompressionStream('gzip');
console.log(stream.writeable); //a WritableStream

Specifications

Specification
Streams Standard (Streams)
# dom-generictransformstream-writable

Browser compatibility

BCD tables only load in the browser