oag-mcp
    Preparing search index...

    Function extractArchive

    • Extract an npm package archive safely into dest.

      Entries are validated before extraction: absolute paths, .. traversal, links, devices and FIFOs are rejected, and entry count and total size are bounded. After extraction every path is checked to resolve inside dest.

      Parameters

      • archive: string

        path to the .tgz archive

      • dest: string

        empty destination directory

      Returns Promise<string>

      absolute path of the package root inside dest