Comparing version 0.1.16 to 0.1.17
@@ -85,3 +85,4 @@ #!/usr/bin/env node | ||
.on('close', function () { | ||
console.log('Successfully downloaded ' + src.length + ' files to ' + path.resolve(opts.out)); | ||
var m = src.length > 1 ? 'files' : 'file'; | ||
console.log('Successfully downloaded ' + src.length, m + ' to ' + path.resolve(opts.out)); | ||
}); | ||
@@ -88,0 +89,0 @@ } |
@@ -33,3 +33,3 @@ 'use strict'; | ||
eachAsync(url, function (url, index, done) { | ||
eachAsync(url, function (url, i, done) { | ||
var req; | ||
@@ -39,2 +39,6 @@ var target = path.join(dest, path.basename(url)); | ||
opts.url = url; | ||
opts.proxy = process.env.HTTPS_PROXY || | ||
process.env.https_proxy || | ||
process.env.HTTP_PROXY || | ||
process.env.http_proxy; | ||
@@ -41,0 +45,0 @@ if (url.url && url.name) { |
{ | ||
"name": "download", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "Download and extract files effortlessly", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# download [![Build Status](https://travis-ci.org/kevva/download.svg?branch=master)](https://travis-ci.org/kevva/download) | ||
> Download and extract files effortlessly in Node.js. | ||
> Download and extract files effortlessly | ||
@@ -86,4 +86,2 @@ ## Install | ||
You can also use it as a CLI app by installing it globally: | ||
```bash | ||
@@ -93,4 +91,2 @@ $ npm install --global download | ||
### Usage | ||
```bash | ||
@@ -115,2 +111,2 @@ $ download --help | ||
[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Kevin Mårtensson](http://kevinmartensson.com) | ||
MIT © [Kevin Mårtensson](http://kevinmartensson.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8601
169
110
6