# backoff-func

> Eventually call a function based on an exponential backoff

Latest version **0.1.2** (published 2015-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install backoff-func
pnpm add backoff-func
yarn add backoff-func
bun add backoff-func
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-05-22 |
| First published | 2015-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Samuel Fortier-Galarneau |
| Maintainers | samuelg |
| Keywords | backoff, retry |

## Links

- npm: https://www.npmjs.com/package/backoff-func
- Repository: https://github.com/samuelg/node-backoff-func
- Issues: https://github.com/samuelg/node-backoff-func/issues
- npm.io page: https://npm.io/package/backoff-func

## Recent versions

- 0.1.2 (latest) — 2015-05-22
- 0.1.1 — 2015-05-06
- 0.1.0 — 2015-05-06

## README

# About

A simple functional exponential backoff function invoker.

Once configured, provides a function that will eventually call the provided function using an exponential backoff algorithm.

# Usage

```JavaScript
var backoff = require('backoff-func').create({
  delay: 10, // default value
  maxDelay: 10000, // default value
  maxRetries: 10, // default value
});

var scheduled = backoff(function() {
  // your code here
});

if (!scheduled) {
  // maxRetries reached
}
```

# License

MIT

Copyright (c) 2015 Samuel Fortier-Galarneau <samuel.galarneau@gmail.com>

---
_Source: https://npm.io/package/backoff-func · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
