0.1.5 • Published 9 years ago

unzip-wrapper v0.1.5

Weekly downloads
17
License
MIT
Repository
github
Last release
9 years ago

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.
0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago