Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/ext/web/lib.deno_web.d.ts>DecompressionStream

A modern runtime for JavaScript and TypeScript.
Latest
variable DecompressionStream
import { DecompressionStream } from "https://deno.land/x/deno@v2.0.4/ext/web/lib.deno_web.d.ts";

An API for decompressing a stream of data.

Examples

Example 1

const input = await Deno.open("./file.txt.gz");
const output = await Deno.create("./file.txt");

await input.readable
  .pipeThrough(new DecompressionStream("gzip"))
  .pipeTo(output.writable);

type

{ readonly prototype: DecompressionStream; new (format: CompressionFormat): DecompressionStream; }