Skip to main content
Module

x/netzo/deno.d.ts>CompressionStream

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
class CompressionStream
import { CompressionStream } from "https://deno.land/x/netzo@v0.1.27/deno.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);

Constructors

new
CompressionStream(format: string)

Creates a new CompressionStream object which compresses a stream of data.

Throws a TypeError if the format passed to the constructor is not supported.

Properties

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