A wrapper around node-fetch that adds automatic retries with exponential backoff. Version 0.2.0 is the latest. It allows configurable delay, retry count, custom success checks, and error/response retry conditions. Useful for handling transient network failures in Node.js HTTP clients.
npm install node-fetch-backoffNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the factory, configure retries with exponential backoff, and make a fetch request.
Consider using native fetch with a retry wrapper or a maintained alternative.
Override `isOK` if you want to accept certain error statuses.
Set `shouldRetryResponse` to a function that returns false for unwanted retries.
Use `import nfbFactory from 'node-fetch-backoff'` or `const nfbFactory = require('node-fetch-backoff')`.Install node-fetch: `npm install node-fetch` or provide your own fetch implementation.