🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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 @@