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
Example 1
await Deno.stdin.readable
.pipeThrough(new CompressionStream("gzip"))
.pipeTo(Deno.stdout.writable);
type
{ readonly prototype: CompressionStream; new (format: CompressionFormat): CompressionStream; }