Package Exports
- cross-zip
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cross-zip) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cross-zip

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
. callback
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
. callback
is called
with an Error
or null
.
zip.unzipSync(inPath, outPath)
Sync version of zip.unzip
.
license
MIT. Copyright (c) Feross Aboukhadijeh.