@jswork/enhanced-fetch
TypeScript icon, indicating that this package has built-in type declarations

1.0.29 • Public • Published

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.

version license size download

installation

npm install @jswork/enhanced-fetch

usage

snapshot

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.

Package Sidebar

Install

npm i @jswork/enhanced-fetch

Homepage

js.work

Weekly Downloads

55

Version

1.0.29

License

MIT

Unpacked Size

42.4 kB

Total Files

31

Last publish

Collaborators

  • afeiship