Spec-Zone.ru › Deno 1

DecompressionStream

An API for decompressing a stream of data.

@example
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);
class DecompressionStream {
constructor(format: string);
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<Uint8Array>;
}

Constructors

new DecompressionStream(format: string)

Creates a new DecompressionStream object which decompresses a stream of data.

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

Properties

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

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/DecompressionStream

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API