reqwestify
v0.1.2
Published
Drop-in reqwest alias for request for the browser
Downloads
2
Maintainers
Readme
reqwestify
Write your code using request
. It can be used in Node.
var request = require('request');
module.exports = function (done) {
var opts = {
url: 'https://api.github.com/zen',
headers: {
'User-Agent': 'https://github.com/bevacqua/buildfirst'
},
crossOrigin: true
};
request(opts, cb);
function cb (err, res, body) {
done(null, res.body);
}
}
node quote