Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

download

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

download - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

11

download.js

@@ -17,5 +17,5 @@ 'use strict';

*
* @param {String} url
* @param {String} dest
* @param {Object} opts
* @param {String} url
* @param {String} dest
* @param {Object} opts
*/

@@ -37,2 +37,3 @@

});
req.on('response', function (res) {

@@ -50,7 +51,7 @@ var mime = res.headers['content-type'];

} else {
end = fs.createWriteStream(dest);
if (!fs.existsSync(path.dirname(dest))) {
mkdir.sync(path.dirname(dest));
}
end = fs.createWriteStream(dest);
}

@@ -57,0 +58,0 @@

{
"name": "download",
"version": "0.1.2",
"version": "0.1.3",
"description": "Download and extract files effortlessly",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc