@sundeepnarang/unzip-wrapper

0.1.5 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.5
    19
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.5
    19

Package Sidebar

Install

npm i @sundeepnarang/unzip-wrapper

Weekly Downloads

19

Version

0.1.5

License

MIT

Unpacked Size

6.71 kB

Total Files

9

Last publish

Collaborators

  • sundeepnarang