got-promise
v5.0.0 got promise bluebird
got-promise
Deprecated: Use got
directly, since it now have Promise API :tada:.
Install
$ npm install --save got-promise
Usage
var got = require('got-promise');
got('google.com')
.then(function (res) {
console.log(res.body);
})
.catch(function (err) {
console.error(err);
console.log(err.response.body);
});
got.post('google.com'); // => Promise
API
Look at sindresorhus/got.
License
MIT © Vsevolod Strukchinsky
npm i got-promise
Metadata
- MIT
- >=0.10.0
- Vsevolod Strukchinsky
- released 7/25/2015