{"library":"fetch-retry","type":"library","category":null,"description":"Adds retry functionality to any fetch library (isomorphic-fetch, cross-fetch, unfetch, or Node.js native fetch). v6.0.0 wraps an existing fetch implementation and retries failed requests due to network errors or specific HTTP status codes. Defaults to 3 retries with 1000ms delay. Supports exponential backoff via custom retryDelay function. Ships TypeScript types. Lightweight with no additional dependencies beyond a fetch polyfill. Compatible with browser and Node.js (>=18).","language":"javascript","status":"active","version":"6.0.0","tags":["javascript","fetch","retry","http","Fetch API","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-retry","imports":["import fetchRetry from 'fetch-retry';\nconst fetch = fetchRetry(global.fetch);","const fetchRetry = require('fetch-retry');\nconst fetch = fetchRetry(require('isomorphic-fetch'));","import fetchRetry from 'fetch-retry';\nconst fetch = fetchRetry(fetch as any); // or use a typed fetch implementation","import fetchRetry from 'fetch-retry';\nconst fetch = fetchRetry(globalThis.fetch);"]},{"cmd":"yarn add fetch-retry","imports":[]},{"cmd":"pnpm add fetch-retry","imports":[]}],"homepage":"https://github.com/jonbern/fetch-retry#readme","github":"https://github.com/jonbern/fetch-retry","docs":null,"changelog":null,"pypi":null,"npm":"fetch-retry","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}