tarball-unpacker
Tarball unpacker tool for Node.js
API
extractFromFile
extracts a tarball file into a target directory.
// Specify a file and target directoryunpacker
Listen to each file extracted:
unpacker
extractFromURL
extracts a tarball from URL into a target directory.
// Specify a URL and target directoryunpacker
- Create instances of
unpacker
if needed
// Create a new instance of Unpackerconst unpacker = unpacker
Options
Available options for configure
method:
silent
(boolean): don't output any log message. Default istrue
.
Command line
It's also possible to use unpacker
as a command line utility, you just need to
install it globally with npm install -g tarball-unpacker
. Here is the help command
output.
Usage: <destination folder> Options: --version Show version number boolean --help Show help boolean Examples: unpacker /tmp/tarballtgz /tmp/unpacked unpacker http://www.arkaitzgarro.com/tarball.tgz /tmp/unpacked