Skip to content

derhuerst/decompress-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

decompress-archive

Extract/decompress archives. Uses native CLI tools such as unzip and tar and therefore only works in Node.js.

Similar to decompress and compressjs. decompress-archive however

  • should be faster because it uses native unzip etc,
  • is more lightweight, but does not work in the browser,
  • has no command line interface.

npm version ISC-licensed chat on gitter

Installing

npm install decompress-archive

Usage

const decompress = require('decompress-archive')

decompress('path/to/archive.zip', 'path/to/dest', (err) => {
	if (err) console.error(err)
})

API

decompress(archive, dest, [flatten], cb)

Contributing

If you have a question or have difficulties using decompress-archive, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.