@drupflare/untarl - v0.1.0
    Preparing search index...

    Function untarGzip

    • Gunzips a stream and parses the tar inside it.

      The archive is buffered whole because a tar header carries no back-pointer, so an entry cannot be found without walking every block before it. For a contrib module that is a few megabytes.

      Parameters

      • stream: ReadableStream<Uint8Array<ArrayBufferLike>>

      Returns Promise<TarEntry[]>

      for the same reasons as parseTar(); a corrupt gzip member rejects from DecompressionStream itself.