Package Exports
- unzip-wrapper
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 (unzip-wrapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
unzip-wrapper
This package wraps the native 'unzip' binary on *NIX machines.
Usage:
unzip(archivePath, [options], [callback]);Example:
var unzip = require('unzip-wrapper');
unzip('/path/to/file.zip', {fix: true}, function(err) {
if (err) {
console.log(err.message);
return;
}
console.log('Unzipping done!');
});You can also pass options:
var options = {
fix: true,
target: '/path/to/target/dir'
};
unzip('/path/to/file.zip', options);The following options are available:
fix-- Whether to check for and attempt to fix any errors with the archive. Defaults to false.target-- The target directory. Defaults to the archive's directory.