@jswork/enhanced-fetch
v1.0.31
Published
Enhanced-fetch is a utility library that enriches the built-in fetch API with features such as support for response types, timeouts, and destroyable requests.
Downloads
168
Maintainers
Readme
enhanced-fetch
Enhanced-fetch is a utility library that enriches the built-in fetch API with features such as support for response types, timeouts, and destroyable requests.
installation
npm install @jswork/enhanced-fetch
usage
import enhancedFetch from '@jswork/enhanced-fetch';
const opts = {
debug: true,
timeout: 1000,
resposneType: 'json'
};
const res = await enhancedFetch('https://api.github.com/users/afeiship', opts);
license
Code released under the MIT license.