Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

cross-zip

Cross-platform .zip file creation

Subscribe to updates I use cross-zip


Statistics on cross-zip

Number of watchers on Github 47
Number of open issues 1
Average time to close an issue 4 days
Main language JavaScript
Average time to merge a PR about 5 hours
Open pull requests 1+
Closed pull requests 1+
Last commit over 2 years ago
Repo Created over 3 years ago
Repo Last Updated almost 2 years ago
Size 15 KB
Organization / Authorfeross
Contributors1
Page Updated
Do you use cross-zip? Leave a review!
View cross-zip activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating cross-zip for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

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

related

license

MIT. Copyright (c) Feross Aboukhadijeh.

cross-zip open pull requests (View All Pulls)
  • Add Greenkeeper badge 🌴
cross-zip list of languages used
Other projects in JavaScript