exponential-backoff
npmv3.1.3TypeScriptA utility that allows retrying a function with an exponential delay between attempts.
Safe to adopt
Yes — exponential-backoff scores well across adoption, maintenance, weight, supply chain, and licensing. 25.7M downloads per week and 1 known dependents. Last published 334 days ago. 2 releases in the last 2 years.
- AAdoption: grade A, Excellent.
25.7M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 334 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 54 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 15 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
Apache-2.0 — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding exponential-backoff to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the exponential-backoff README.
function backOff<T>(
request: () => Promise<T>,
options?: BackOffOptions
): Promise<T>;exponential-backoff vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| exponential-backoffthis page | 25.7M | 1 | Apache-2.0 | 11 months ago |
| @gar/promise-retry | 6M | 1 | MIT | 1 day ago |
| graceful-fs | 0 | 24 | ISC | 1 day ago |
| @humanwhocodes/retry | 0 | 2 | Apache-2.0 | 1 day ago |
| safe-regex2 | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by exponential-backoff v3.1.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (8)
Used by
Popular packages that depend on exponential-backoff.
Relationship graph
Dependencies (left) and dependents (right) of exponential-backoff.
Frequently installed together
Release history
2 releases in the last two years, typically about 34 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.1.3latest | 11 months ago | 54 KB | Apache-2.0 |
| 3.1.2 | 1 year ago | 54 KB | Apache-2.0 |
| 3.1.1 | 3 years ago | 36 KB | Apache-2.0 |
| 3.1.0 | 6 years ago | 37 KB | Apache-2.0 |
| 3.0.1 | 6 years ago | 37 KB | Apache-2.0 |
| 3.0.0 | 6 years ago | 37 KB | Apache-2.0 |
| 2.2.1 | 6 years ago | 37 KB | Apache-2.0 |
| 2.2.0 | 6 years ago | 37 KB | Apache-2.0 |
| 2.1.1 | 7 years ago | 36 KB | Apache-2.0 |
| 2.1.0 | 7 years ago | 26 KB | Apache-2.0 |
| 2.0.0 | 7 years ago | 4.4 KB | Apache-2.0 |
| 1.2.0 | 7 years ago | 4.1 KB | Apache 2.0 |
| 1.0.7 | 8 years ago | 9.9 KB | MIT |
| 1.0.6 | 8 years ago | 9.8 KB | MIT |
| 1.0.5 | 8 years ago | 8.7 KB | MIT |
Overview
exponential-backoff is an npm package that a utility that allows retrying a function with an exponential delay between attempts. It is extremely widely used, with about 25.7M downloads per week and 1 known dependents in the graph. The latest version is 3.1.3, released under the Apache-2.0 license.
Who should use it
Teams working in the npm ecosystem who need a utility that allows retrying a function with an exponential delay between attempts and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (25.7M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (Apache-2.0).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use exponential-backoff?
Yes — exponential-backoff scores well across adoption, maintenance, weight, supply chain, and licensing. 25.7M downloads per week and 1 known dependents. Last published 334 days ago. 2 releases in the last 2 years.
How do I install exponential-backoff?
Run `npm install exponential-backoff` to add exponential-backoff to your npm project.
What license is exponential-backoff released under?
exponential-backoff is distributed under the Apache-2.0 license.
How popular is exponential-backoff?
exponential-backoff has approximately 25,673,486 downloads per week and 1 known dependent packages.
Is exponential-backoff still maintained?
The most recent release of exponential-backoff (v3.1.3) was published 11 months ago.
Does exponential-backoff run install scripts?
No. exponential-backoff does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.