unarchive
v1.2.1
Published
Automatically extract archives of various types
Maintainers
Readme
unarchive
This tool is a utility wrapper around the compressing package
it automatically detects the compression type (zip/tar/tar.gz/gz/crx/xpi) and extracts the content of the archive
Installation
npm install unarchiveor
yarn add unarchive
pnpm add unarchive
bun add unarchiveUsage
//const unarchive = require('unarchive')
import unarchive from 'unarchive'
await unarchive(archiveName, 'outputFolder')Supported formats
- zip
- tar
- gz (gzip files)
- tar.gz / tgz
- xpi (Firefox extension files)
- crx (Chrome extension files)
