A wrapper for the command line commands to extract: tar, tar.gz, bz2, zip, rar
npm install node-uncompress

Command-line wrapper for uncompressing various file types.
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
npm install -g node-uncompress