CompressionStream: writable property
Baseline 2023Newly 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
Examples
The following example returns a WritableStream
from a CompressionStream
.
js
let stream = new CompressionStream("gzip");
console.log(stream.writable); // A WritableStream
Specifications
Specification |
---|
Streams # dom-generictransformstream-writable |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
writable |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.