nsuite - v1.0.1
    Preparing search index...

    Function zipFolder

    • Zips a folder and returns a promise that resolves when the zip operation is complete.

      Parameters

      • options: { pathFolder: string; pathOutputFile: string }

        The options for the zip operation.

        • pathFolder: string

          The path to the folder to be zipped.

        • pathOutputFile: string

          The path to the output zip file.

      Returns Promise<number>

      • A promise that resolves with final zip file size in Bytes when the zip operation is complete.
      import { zipFolder } from "nsuite";
      await zipFolder({
      pathFolder: "./dist",
      pathOutputFile: "./dist.zip",
      });