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
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",
});