🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

progress-extract

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

progress-extract

extract compress file with progress bar

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

progress-extract

extract compress file with progress bar, support CLI and node API

Screenshot

progress-extract

CLI

Install

Install as a global module

$ npm install progress-extract -g

Usage

Use extract command to extract file

$ extract -h

  Usage: extract <file>

  extract file with progress bar


  Options:

    -V, --version          output the version number
    -d, --directory <dir>  target dir to extract
    -h, --help             output usage information

  Examples:

    $ extract example.tar.gz

Node API

Usage

const extract = require('progress-extract')

let file = '/path/to/example.tar.gz'
let target = process.cwd()
extract(file, target)
  .then(() => {
    console.log('extract succeed')
  }, err => {
    console.log('extract failed')
  })

API

extract(source, [destination])
  • source: source file (support .zip, .tgz, .tar.gz)
  • destination: path where you extract to

Return Promise

License

MIT

Keywords

progress-extract

FAQs

Package last updated on 28 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts