Socket
Socket
Sign inDemoInstall

download

Package Overview
Dependencies
91
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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 @@ });

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc