cross-zip

Cross-platform .zip file creation

Possible security issue issue found in 2.x. Please update to 3.x
Last updated 9 years ago by feross .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install cross-zip 
SYNC missed versions from official npm registry.

cross-zip ci 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.

Current Tags

  • 4.0.1                                ...           latest (10 months ago)

14 Versions

  • 4.0.1                                ...           10 months ago
  • 4.0.0                                ...           4 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.1.6 [deprecated]           ...           5 years ago
  • 2.1.5 [deprecated]           ...           8 years ago
  • 2.1.4 [deprecated]           ...           9 years ago
  • 2.1.3 [deprecated]           ...           9 years ago
  • 2.1.2 [deprecated]           ...           9 years ago
  • 2.1.1 [deprecated]           ...           9 years ago
  • 2.1.0 [deprecated]           ...           9 years ago
  • 2.0.1 [deprecated]           ...           9 years ago
  • 2.0.0 [deprecated]           ...           9 years ago
  • 1.0.0 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE