fetch-response-enhancer
A nicer response object
Table of Contents
About
Provides a nicer response object for fetch request that tries to convert to appropriate content type. Heavily based on trae.
Install
This project uses node and npm.
$ npm install fetch-response-enhancer$ # OR $ yarn add fetch-response-enhancer
Usage
// Object {config: Object, ok: true, headers: Headers, status: 200, statusText: ""…} // manually set bodyType // {config: Object, ok: true, headers: Headers, status: 200, statusText: ""…}
Contribute
- Fork it and create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request
License
MIT