Comparing version 0.2.0 to 0.2.1
11
index.js
@@ -20,2 +20,3 @@ 'use strict'; | ||
this.opts.encoding = null; | ||
this.opts.mode = parseInt(this.opts.mode, 8) || null; | ||
this.opts.proxy = process.env.HTTPS_PROXY || | ||
@@ -110,2 +111,12 @@ process.env.https_proxy || | ||
if (opts.mode) { | ||
return fs.chmod(path.join(obj.dest, name), opts.mode, function (err) { | ||
if (err) { | ||
return done(err); | ||
} | ||
done(); | ||
}); | ||
} | ||
done(); | ||
@@ -112,0 +123,0 @@ }); |
{ | ||
"name": "download", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Download and extract files effortlessly", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -60,3 +60,3 @@ # download [![Build Status](https://travis-ci.org/kevva/download.svg?branch=master)](https://travis-ci.org/kevva/download) | ||
### extract | ||
### extract | ||
@@ -68,5 +68,12 @@ Type: `Boolean` | ||
### strip | ||
### mode | ||
Type: `Number` | ||
Default: `null` | ||
Set mode on the downloaded file. | ||
### strip | ||
Type: `Number` | ||
Default: `0` | ||
@@ -73,0 +80,0 @@ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6162
133
84
0