node-uncompress

A wrapper for the command line commands to extract: tar, tar.gz, bz2, zip, rar

node-uncompress

Command-line wrapper for uncompressing various file types.

Command line usage

Usage:
    uncomp [-d DIR] [--type=TYPE] FILE
        [--verbose]
    uncomp -h | --help | --version

Uncompress FILE using existing command line tools.

Arguments:
    FILE              File to be unzip.

Options:
    -h --help         Show this screen.
    --version         Show version.
    -d DIR            Directory to be extracted to. It will be created if not exist.
    -t --type=TYPE    Type of the file. Filetype is auto detect by default.
    -v --verbose      Print verbose debug info.

Examples

# Uncompress rar file
uncomp file.rar

# Uncompress to a folder
uncomp file.zip -d out

# Uncompress a file with type
uncomp file -t .tar.gz

Install via npm:

npm install -g node-uncompress
  • node v0.8 and above
  • docopt, shelljs
  • Command line tools available in user's path: tar, unrar, unzip, bunzip2

MIT, see LICENSE.