extract-archivedeprecated

Extract tar.gz archive

Usage no npm install needed!

<script type="module">
  import extractArchive from 'https://cdn.skypack.dev/extract-archive';
</script>

README

extract-archive Circle CI

Extract a tar.gz archive. Simply wraps tar.

Installation

$ npm install extract-archive --save

Usage

const extract = require('extract-archive');

extract('some.tar.gz').then(function (dirPath) {
  // done!
});


// set destination directory
extract('some.tar.gz', 'output-directory').then(function () {
  // done!
});


// use with generators
yield extract('some.tar.gz');

Tests

Circle CI

$ make test

License

extract-archive is released under the MIT license.