Socket
Socket
Sign inDemoInstall

progress-download

Package Overview
Dependencies
96
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    progress-download

download file with progress bar


Version published
Weekly downloads
893
increased by0.11%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

progress-download

download file with progress bar, support CLI and node API

Screenshot

progress-download

CLI

Install

Install as a global module

$ npm install progress-download -g

Usage

Use download command to download a url

$ download -h

  Usage: download [options] <url>

  download file with progress bar (like wget)


  Options:

    -V, --version        output the version number
    -o, --output <name>  output file name
    -h, --help           output usage information

  Examples:

    $ download http://example.com/foobar.zip
    $ download http://example.com/foobar.zip -o xxx.zip

Node API

Usage

Use it like download module

const download = require('progress-download')

let url = 'https://github.com/tj/commander.js/archive/master.zip'
let filename = 'commander.zip'
download(url, {
  filename
}).then(() => {
  console.log('download succeed')
}, err => {
  console.log('download failed')
})

API

download(url, [destination], [options])
  • url: url to download
  • destination: path where you download to
  • options: more other download options

same API as download api

License

MIT

Keywords

FAQs

Last updated on 28 Jul 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc