W3cubDocs

/Web APIs

CompressionStream: writable property

Baseline 2023
Newly available

Since ⁨May 2023⁩, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Note: This feature is available in Web Workers.

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

Value

A WritableStream.

Examples

The following example returns a WritableStream from a CompressionStream.

let stream = new CompressionStream("gzip");
console.log(stream.writable); // A WritableStream

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
writable 80 80 113 67 16.4 80 113 57 16.4 13.0 80 16.4

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream/writable