Firefox Tomorrow

web api interface

DecompressionStream

View on MDN ↗

Available in workers

The DecompressionStream interface of the Compression Streams API decompresses a stream of data. It implements the same shape as a TransformStream, allowing it to be used in pipeThrough() and similar methods.

Constructor

Instance properties

Examples

In this example a blob is decompressed using gzip compression.

const ds = new DecompressionStream("gzip");
const decompressedStream = blob.stream().pipeThrough(ds);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also