This tool is a utility wrapper around the compressing package
it automatically detects the compression type (zip/tar/tar.gz) and extracts the content of the archive
npm install unarchive
or
yarn add unarchive
pnpm add unarchive
bun add unarchive
//const unarchive = require('unarchive')
import unarchive from 'unarchive'
await unarchive(archiveName, 'outputFolder')
- zip
- tar
- tar.gz / tgz