ПотокДекомпрессии
API для декомпрессии потока данных.
@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);
Конструкторы
new DecompressionStream(format: string)
Создаёт новый объект DecompressionStream, который декомпримирует поток данных.
Выбрасывает TypeError, если формат, переданный в конструктор, не поддерживается.
Свойства
readable: ReadableStream<Uint8Array>writable: WritableStream<Uint8Array>
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/DecompressionStream