Provides a means of performing gzip and deflate compression from JavaScript using streams. This covers two interfaces: CompressionStream and DecompressionStream.

Motivation

It is possible to compress stream data without this feature, but common libraries like zlib are complex to use. CompressionStream makes it easy for developers to do this, and avoids the need to bundle a compressor with their application.

Demo

Documentation

Specification

Specification link


Unknown standards status - check spec link for status

Status in Chromium

Blink>Network>StreamsAPI


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Intent to Prototype url

Intent to Prototype thread

Search tags

TransformStream ReadableStream WritableStream transform zlib,

Last updated on 2021-08-16