fetch-retry

JSON →
library 6.0.0 ·javascript
verified Jun 7, 2026

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).