https://github.com/floatdrop/got-promise
Promise wrapper around sindresorhus/got
https://github.com/floatdrop/got-promise
Last synced: about 1 year ago
JSON representation
Promise wrapper around sindresorhus/got
- Host: GitHub
- URL: https://github.com/floatdrop/got-promise
- Owner: floatdrop
- License: mit
- Created: 2015-04-05T06:30:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-25T07:31:35.000Z (almost 11 years ago)
- Last Synced: 2025-03-14T01:31:41.765Z (about 1 year ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# got-promise [](https://travis-ci.org/floatdrop/got-promise)
__Deprecated__: Use `got` directly, since it now have Promise API :tada:.
## Install
```
$ npm install --save got-promise
```
## Usage
```js
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](https://github.com/sindresorhus/got).
## License
MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)