# backo2

> simple backoff based on segmentio/backo

Latest version **1.0.2** (published 2014-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install backo2
pnpm add backo2
yarn add backo2
bun add backo2
```

## Health

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

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2014-11-23 |
| First published | 2014-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/backo2) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | mokesmokes |
| Keywords | backoff |

## Links

- npm: https://www.npmjs.com/package/backo2
- Repository: https://github.com/mokesmokes/backo
- Issues: https://github.com/mokesmokes/backo/issues
- npm.io page: https://npm.io/package/backo2

## Recent versions

- 1.0.2 (latest) — 2014-11-23
- 1.0.1 — 2014-11-22

## README

# backo

  Simple exponential backoff because the others seem to have weird abstractions.

## Installation

```
$ npm install backo
```

## Options

 - `min` initial timeout in milliseconds [100]
 - `max` max timeout [10000]
 - `jitter` [0]
 - `factor` [2]

## Example

```js
var Backoff = require('backo');
var backoff = new Backoff({ min: 100, max: 20000 });

setTimeout(function(){
  something.reconnect();
}, backoff.duration());

// later when something works
backoff.reset()
```

# License

  MIT

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