Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 541 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 541 Bytes

unarchive

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

Installation

npm install unarchive

or

yarn add unarchive
pnpm add unarchive
bun add unarchive

Usage

//const unarchive = require('unarchive')
import unarchive from 'unarchive'

await unarchive(archiveName, 'outputFolder')

Supported formats

  • zip
  • tar
  • tar.gz / tgz