Comparing version 0.1.2 to 0.1.3
@@ -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": [ |
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
3345