W3cubDocs

/Web APIs

DecompressionStream: readable 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 readable read-only property of the DecompressionStream interface returns a ReadableStream.

Value

A ReadableStream.

Examples

The following example returns a ReadableStream from a DecompressionStream.

const stream = new DecompressionStream("gzip");
console.log(stream.readable); // A ReadableStream

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
readable 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/readable