</>PackageGraphPackageGraph

exponential-backoff

npmv3.1.3TypeScript

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

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

54 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

PackageWeekly downloadsDependentsLicenseLast release
exponential-backoffthis page25.7M1Apache-2.011 months ago
@gar/promise-retry6M1MIT1 day ago
graceful-fs024ISC1 day ago
@humanwhocodes/retry02Apache-2.01 day ago
safe-regex202MIT1 day ago

Dependencies

Declared by exponential-backoff v3.1.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (8)

@types/jest ^24.0.18@types/node ^10.14.21husky ^3.0.9jest ^24.9.0lint-staged ^9.4.2prettier ^1.18.2ts-jest ^24.1.0typescript ^3.6.4

Used by

Popular packages that depend on exponential-backoff.

Relationship graph

Dependencies (left) and dependents (right) of exponential-backoff.

metro-cacheexponential-backo…
exponential-backoff dependencies dependents

Frequently installed together

Release history

2 releases in the last two years, typically about 34 days apart.

Recent versions of exponential-backoff
VersionPublishedSizeLicense
3.1.3latest11 months ago54 KBApache-2.0
3.1.21 year ago54 KBApache-2.0
3.1.13 years ago36 KBApache-2.0
3.1.06 years ago37 KBApache-2.0
3.0.16 years ago37 KBApache-2.0
3.0.06 years ago37 KBApache-2.0
2.2.16 years ago37 KBApache-2.0
2.2.06 years ago37 KBApache-2.0
2.1.17 years ago36 KBApache-2.0
2.1.07 years ago26 KBApache-2.0
2.0.07 years ago4.4 KBApache-2.0
1.2.07 years ago4.1 KBApache 2.0
1.0.78 years ago9.9 KBMIT
1.0.68 years ago9.8 KBMIT
1.0.58 years ago8.7 KBMIT

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.