Skip to content

Araxeus/unarchive

Repository files navigation

unarchive

This tool is a utility wrapper around the compressing package

it automatically detects the compression type and extracts the archive

Installation

npm install unarchive

or

yarn add unarchive

Usage

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

await unarchive(archiveName, 'outputFolder')

Supported formats

  • zip
  • tar
  • tar.gz / tgz