Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.67 KB

api-doc.md

File metadata and controls

59 lines (40 loc) · 1.67 KB

Zipper

Kind: global class

zipper.unpack(zipFilePath, targetDir) ⇒ Promise.<boolean>

Unzip archive.

Kind: instance method of Zipper

Param Type
zipFilePath string
targetDir string

zipper.pack(pathSource, pathZip) ⇒ Promise.<void>

Archived dir or file

Kind: instance method of Zipper

Param Type
pathSource string
pathZip string

zipper.addFile(pathFile, base) ⇒ Promise.<void>

Add file to archive.

Kind: instance method of Zipper

Param Type Description
pathFile string
base string Dir in archive. '' is root

zipper.addDir(pathDir, base) ⇒ Promise.<void>

Add file to archive.

Kind: instance method of Zipper

Param Type Description
pathDir string
base string base Dir in archive. '' is root