2.2.0 • Published 10 months ago

fetch-with-retries v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Fetch With Retries

Fetch With Retries is a TypeScript library that provides a robust way to make requests to an API with automatic retry logic. It's designed to handle both network errors and service issues, such as rate limiting.

Npm Version Actions Status CodeFactor codecov Dependabot

Features

  • Automatic retries for network errors and certain HTTP status codes.
  • Exponential backoff for retry delays.
  • Support for Retry-After and X-RateLimit-Reset headers.
  • Customizable retry conditions.
  • Timeout option for the fetch request.
  • Allow to abort wait between retries with fetch signal and AbortController.

Installation

npm install fetch-with-retries

License

Fetch With Retries is MIT licensed.

2.2.0

10 months ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago