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 DecompressionStream interface returns a WritableStream.
The following example returns a WritableStream from a DecompressionStream.
let stream = new DecompressionStream("gzip");
console.log(stream.writable); // A WritableStream
| Specification |
|---|
| Streams> # dom-generictransformstream-writable> |
| 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/DecompressionStream/writable