promising-request
v0.1.0
Published
A promises-based wrapper for request
Downloads
2
Maintainers
Readme
A promises-based wrapper for request
Install
$ npm install --save promising-request
Usage
Use everything as you normally would use if it were request but every HTTP method returns a promise.
var promisingRequest = require('promising-request');
var promisedLuke = promisingRequest.get('http://swapi.co/api/people/1');
promisedLuke.then(function(res) {
//fiddle with response
}, function(err) {
//or handle the errors
});
License
MIT © Fábio Oliveira