Nova-Client/Solar/Launcher/node_modules/cross-zip
2023-03-19 19:32:58 +00:00
..
node_modules !! 2023-03-19 19:32:58 +00:00
test !! 2023-03-19 19:32:58 +00:00
.travis.yml !! 2023-03-19 19:32:58 +00:00
index.js !! 2023-03-19 19:32:58 +00:00
LICENSE !! 2023-03-19 19:32:58 +00:00
package.json !! 2023-03-19 19:32:58 +00:00
README.md !! 2023-03-19 19:32:58 +00:00

cross-zip travis npm downloads javascript style guide

Cross-platform .zip file creation

install

npm install cross-zip

usage

var zip = require('cross-zip')

var inPath = path.join(__dirname, 'myFolder') // folder to zip
var outPath = path.join(__dirname, 'myFile.zip') // name of output zip file

zip.zipSync(inPath, outPath)

api

zip.zip(inPath, outPath, [callback])

Zip the folder at inPath and save it to a .zip file at outPath. If a callback is passed, then it is called with an Error or null.

zip.zipSync(inPath, outPath)

Sync version of zip.zip.

zip.unzip(inPath, outPath, [callback])

Unzip the .zip file at inPath into the folder at outPath. If a callback is passed, then it is called with an Error or null.

zip.unzipSync(inPath, outPath)

Sync version of zip.unzip.

Windows users

This package requires .NET Framework 4.5 or later and Powershell 3. These come pre-installed on Windows 8 or later.

On Windows 7 or earlier, you will need to install these manually in order for cross-zip to function correctly.

reference

license

MIT. Copyright (c) Feross Aboukhadijeh.