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

    Function parseTar

    • Parses a POSIX/ustar tar archive.

      Handles the shapes real drupal.org tarballs contain: the ustar prefix split, GNU L long names, pax x/g headers (skipped, though an x header's path= record renames the entry it describes), and the v7 habit of writing a directory as typeflag 0 with a trailing slash. Symlinks, hard links and device nodes are consumed and dropped -- nothing in a module install should follow one.

      Parameters

      • bytes: Uint8Array

      Returns TarEntry[]

      on a truncated header or body, a size that overruns the buffer, a non-octal size or mode, or a nameless entry.