Skip to content

nsuite v2.2.1


nsuite / zipFolder

Function: zipFolder()

zipFolder(options): Promise<number>

Defined in: UtilsFile.ts:106

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

Parameters

options

ZipFolderOptions

The options for the zip operation.

Returns

Promise<number>

  • A promise that resolves with final zip file size in Bytes when the zip operation is complete.

Example

ts
import { zipFolder } from "nsuite";
await zipFolder({
  pathFolder: "./dist",
  pathOutputFile: "./dist.zip",
});

Released under the Apache-2.0 License.