CompressionStream - Web documentation
interface CompressionStream

An API for compressing a stream of data.

Examples

Example 1

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

Properties

readonly
readable: ReadableStream<Uint8Array>
readonly
writable: WritableStream<Uint8Array>
variable CompressionStream

An API for compressing a stream of data.

Examples

Example 1

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

Properties