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

httpreq

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpreq - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

7

httpreq.js

@@ -80,4 +80,2 @@ /*

exports.download = function (url, downloadlocation, progressCallback, callback) {
var options = {};

@@ -238,4 +236,5 @@ options.url = url;

}else{
downloadstream.end();
callback(null, {headers: res.headers, statusCode: res.statusCode, downloadlocation: o.downloadlocation});
downloadstream.end(null, null, function () {
callback(null, {headers: res.headers, statusCode: res.statusCode, downloadlocation: o.downloadlocation});
});
}

@@ -242,0 +241,0 @@ });

{
"name": "httpreq",
"description": "node-httpreq is a node.js library to do HTTP(S) requests the easy way",
"version": "0.3.7",
"version": "0.3.8",
"author": {

@@ -6,0 +6,0 @@ "name": "Sam Decrock",

@@ -14,2 +14,15 @@ node-httpreq

## Simple example
```js
var httpreq = require('httpreq');
httpreq.get('http://www.google.com', function (err, res){
if (err) return console.log(err);
console.log(res.statusCode);
console.log(res.headers);
console.log(res.body);
});
```
## How to use

@@ -16,0 +29,0 @@

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