node-minizip
v0.3.0
Published
A node.js addon binding Minizip for handling zip files.
Downloads
17
Readme
#node-minizip
node-minizip is a node.js addon binding Minizip for handling zip files.
Install
npm install node-minizip
Quick Start
var Minizip = require('node-minizip');
Minizip.zip('your/src/dir', 'your/path/name.zip', function(err) {
if (err)
console.log(err);
else
console.log('zip successfully.');
});
Minizip.unzip('path/to/name.zip', 'dest/dir', function(err) {
if (err)
console.log(err);
else
console.log('unzip successfully.');
});
APIs
###Minizip.zip(src_dir, dest_file, callback)
src_dir
Stringdest_file
Stringcallback
Function(err)
###Minizip.unzip(zip_file, unzip_dir, callback)
zip_file
Stringunzip_dir
Stringcallback
Function(err)
License
MIT license. See LICENSE
file for details.