superpromise
v0.1.0
Published
simple function that wraps superagent requests in promises
Downloads
2
Readme
Super Promise
wrap super agent requests in promises
example:
const superagent = require('superagent');
const sp = require('superpromise');
const request = superagent.get('http://www.google.com');
sp(request).then(function(res){
// success
}).catch(function(err) {
// failure
});