rqbb
v1.0.2
Published
Simple promise request using bluedird, NodeJS Express module.
Downloads
5
Readme
request-bluebird
NodeJS Express module, simple promise request using bluedird.
Summary
Install
npm install rqbb
Get started
var request = require('rqbb');
var params = {
url : "http://example.com",
// (optional) auth : { Baerer : {{TOKEN}} },
params : {
param1 : value1,
param2 : value2
}
};
request.get(params)
.then(function(result){
var status = result.status;
var body = result.body;
})
.catch(function(err){
console.log(err);
});