extrakt
v1.0.8
Published
Extract .tar and .tar.gz using the system's binary (fast!), with a javascript fallback (portable!)
Downloads
831
Readme
Extract
.tar
and.tar.gz
using the system binary (fast!), with a javascript fallback (portable!)
Makes a great team with nectar.
Install
$ npm install --save extrakt
Usage
const extrakt = require('extrakt');
extrakt('path/to/archive.tar.gz', 'output/directory');
API
extrakt(archive, extractTo)
Extract the archive at the given path archive
to the extractTo
directory (which will be created if it does not exist).
Returns a Promise for the completion of the extraction.
archive
Type: string
Path to the archive
extractTo
Type: string
Destination directory
License
MIT © sgtlambda