Documentation
    Preparing search index...
    • Extract a zip file to a directory.

      Entry names are confined to that directory: a name climbing out of it (".." or an absolute path) is an attempt at a zip slip and is refused.

      Parameters

      • fnm: string

        path of the zip file

      • dir: string

        directory to extract into

      • Optionalpassword: string

        password for encrypted archives. If the archive is encrypted and this is missing or wrong, the thrown error carries requiresPassword: true.

      Returns Promise<void>