@mikeyt23/node-cli-utils
    Preparing search index...

    Variable unpackTarballContentsConst

    unpackTarballContents: (
        tarballPath: string,
        unpackDirectory: string,
        stripComponents?: number,
    ) => Promise<void> = defaultUtil.unpackTarballContents

    Type Declaration

      • (
            tarballPath: string,
            unpackDirectory: string,
            stripComponents?: number,
        ): Promise<void>
      • A more opinionated version of unpackTarball that assumes you want to create the directory and strip the first directory out of the unpacked files.

        Parameters

        • tarballPath: string

          The path to the tarball to unpack

        • unpackDirectory: string

          The directory to unpack the tarball into - will be created if it doesn't exist and will throw if it exists but is not empty

        • stripComponents: number = 1

          The number of leading directories to strip out of the unpacked files, defaults to 1

        Returns Promise<void>