Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fast-extract

kmalakoff23.4kMIT1.7.2TypeScript support: included

Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip)

fast, extract, extract-tar, extract-bz2, extract-gz, extract-xz, extract-tgz, extract-zip, decompress, decompress-tar, decompress-bz2, decompress-gz, decompress-xz, decompress-tgz, decompress-zip, .tar, tar, .tar.bz2, tar.bz2, .tar.gz, tar.gz, .tar.xz, tar.xz, .tgz, tgz, .zip, zip

readme

fast-extract

Extract contents from various archive types (tar, tar.bz2, tar.gz, tar.xz, tgz, zip).

var assert = require('assert')
var extract = require('fast-extract'))

// provide the type
extract('/path/file', fullPath, { strip: 1, type: 'tar.gz' }, function(err) {})

// use the type
await extract('/path/file.tar.gz', fullPath, { strip: 1 })