Function readTarItems

  • Parses the content of a (decompressed) TAR archive and returns its regular file entries.

    This is a minimal, dependency-free reader that works in both the browser and Node.js. It handles long entry names from the USTAR prefix field, GNU long name (L type flag) entries, and PAX extended headers (x type flag), and skips directories and other non-regular entries.

    Returns

    The regular file entries with their name and content.

    Parameters

    • data: Uint8Array

      The decompressed TAR archive content.

    Returns TarItem[]

Generated using TypeDoc