tar
    Preparing search index...

    Function codecStream

    • 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.

      • Optionalfirst: (chunk: Uint8Array) => void

        called with the first chunk of output

      Returns CodecStream