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

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

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

An API for compressing a stream of data.

Examples

Example 1

await Deno.stdin.readable
  .pipeThrough(new CompressionStream("gzip"))
  .pipeTo(Deno.stdout.writable);

type

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