Zip lib
Methods
-
<static> packFile(path [, options])
-
Pack a single file
Parameters:
Name Type Argument Description pathString Origin file path optionsObject <optional>
Properties
Name Type Argument Description destinationString <optional>
Output directory, the default is the origin file directory targetNameString <optional>
Zip file name, the default is the origin file name overrideBoolean <optional>
Override destination file, default is false suffixMask(String=} If override is set to false, set the date format to use as suffix in targetName, default is 'YYYY-MM-DDTHH-mm-ss' Returns:
- Type
- EventEmitter
-
<static> packFiles(pathList [, options])
-
Pack multiple files into a single zip
Parameters:
Name Type Argument Description pathListArray Origin file paths optionsObject <optional>
Properties
Name Type Argument Description destinationString <optional>
Output directory, the default is the origin file directory targetNameString <optional>
Zip file name, the default is the origin file name overrideBoolean <optional>
Override destination file, default is false suffixMask(String=} If override is set to false, set the date format to use as suffix in targetName, default is 'YYYY-MM-DDTHH-mm-ss' Returns:
- Type
- EventEmitter