Creates the stream
The compression format.
Optionaloptions: CompressionStreamOptions
The options.
The readable stream.
The writable stream.
Static Optionalrequirestrue when the class cannot be constructed before the module the entry point loads is ready, i.e. the
WebAssembly module of zip.js or the module loaded by the init function passed to initWorker.
The library then waits for the module before constructing the class, uses CompressionStream instead when
the module fails to load, and constructs the class with the "gzip" format in order to read the CRC-32 of
the data from the trailer, so the class must support that format.
Static OptionalsupportedThe formats the class supports, e.g. ["deflate-raw", "gzip"]. When it is declared, the library reads it
instead of probing a format by constructing the class, which a class that requires a module cannot afford.
Represents a generic class compressing data, e.g. the native
CompressionStreamclass.