CompressionStream
interface
interface CompressionStream extends GenericTransformStreamAn API for compressing a stream of data.
Example
await Ende.stdin.readable
.pipeThrough(new CompressionStream("gzip"))
.pipeTo(Ende.stdout.writable);
variable
var CompressionStream: { … }An API for compressing a stream of data.
Example
await Ende.stdin.readable
.pipeThrough(new CompressionStream("gzip"))
.pipeTo(Ende.stdout.writable);
Constructors
constructor
new CompressionStream(format: CompressionFormat): CompressionStreamCreates a new CompressionStream object which compresses a stream of
data.
Throws a TypeError if the format passed to the constructor is not
supported.
Properties
readable
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>writable
readonly writable: WritableStream<BufferSource>prototype
readonly prototype: CompressionStream