Make the two web streams of a node:zlib stream, or of another
Transform stream of node:stream. The result fits the
transform option of extract.
As with a TransformStream, a write is complete only when the
reader asks for more output than the stream has. The zlib stream
makes output only until its buffer is full. So the reader of an
archive can stop before more is decompressed.
Parameters
stream: Transform
batch: boolean = false
put small chunks of input together for one write.
Each write is a task for a thread.
Make the two web streams of a
node:zlibstream, or of anotherTransformstream ofnode:stream. The result fits thetransformoption ofextract.As with a
TransformStream, a write is complete only when the reader asks for more output than the stream has. The zlib stream makes output only until its buffer is full. So the reader of an archive can stop before more is decompressed.