Socket
Socket
Sign inDemoInstall

nodejs-file-downloader

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-file-downloader - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

18

Downloader.test.js

@@ -62,3 +62,3 @@

'Content-Type': 'image/jpeg',
'Content-Length': '845941'
'Content-Length': '23642'
}

@@ -88,3 +88,3 @@

await verifyFile('./downloads/contentType.jpeg', 845941);
await verifyFile('./downloads/contentType.jpeg', 23642);
// console.log(verify)

@@ -101,3 +101,3 @@

'Content-Type': 'image/jpeg',
'Content-Length': '845941'
'Content-Length': '23642'
}

@@ -116,3 +116,3 @@

await verifyFile('./downloads/alternativeName.jpg', 845941);
await verifyFile('./downloads/alternativeName.jpg', 23642);
// console.log(verify)

@@ -129,3 +129,3 @@

'Content-Type': 'image/jpeg',
'Content-Length': '845941'
'Content-Length': '23642'
}

@@ -143,3 +143,3 @@

await verifyFile('./downloads/May/2020/Desert.jpg', 845941);
await verifyFile('./downloads/May/2020/Desert.jpg', 23642);
// console.log(verify)

@@ -170,3 +170,3 @@

await verifyFile('./downloads/May/2020/Desert2.jpg', 845941);
await verifyFile('./downloads/May/2020/Desert2.jpg', 23642);
// console.log(verify)

@@ -289,3 +289,3 @@

'Content-Type': 'image/jpeg',
'Content-Length': '780831'
'Content-Length': '29051'
}

@@ -303,3 +303,3 @@

await verifyFile('./downloads/Koala.jpg', 780831);
await verifyFile('./downloads/Koala.jpg', 29051);

@@ -306,0 +306,0 @@ const downloader2 = new Downloader({

{
"name": "nodejs-file-downloader",
"version": "1.2.1",
"version": "1.2.2",
"description": "A file downloader for NodeJs",

@@ -5,0 +5,0 @@ "main": "Downloader.js",

@@ -66,3 +66,3 @@ nodejs-file-downloader is a simple utility for downloading files. It hides the complexity of dealing with streams, paths and duplicate file names.

nodejs-file-downloader "deduces" the file name, from the URL or the response headers. If you want to overwrite it, supply a config.fileName property.
Normally, nodejs-file-downloader "deduces" the file name, from the URL or the response headers. If you want to choose a custom file name, supply a config.fileName property.

@@ -69,0 +69,0 @@ ```javascript

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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