@jswork/next-fetch-with-timeout

1.0.13 • Public • Published

next-fetch-with-timeout

Fetch with timeout options.

version license size download

installation

npm install -S @jswork/next-fetch-with-timeout

usage

import '@jswork/next-fetch-with-timeout';

const betterFetch = nx.fetchWithTimeout(fetch);
betterFetch('https://api.github.com/users/afeiship').then(res=>res.json()).then(res=>{
  console.log(res);
})

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-fetch-with-timeout

Weekly Downloads

1

Version

1.0.13

License

MIT

Unpacked Size

5.6 kB

Total Files

5

Last publish

Collaborators

  • afeiship