This package has been deprecated

Author message:

Use got (http://npmjs.com/got) directly.

got-promise

5.0.0 • Public • Published

got-promise Build Status

Deprecated: Use got directly, since it now have Promise API 🎉.

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

Readme

Keywords

Package Sidebar

Install

npm i got-promise

Weekly Downloads

30

Version

5.0.0

License

MIT

Last publish

Collaborators

  • floatdrop