# recursiveretry

> Recursive retry for request

Latest version **1.0.4** (published 2018-12-25) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-12-25 |
| First published | 2018-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kin Tuda |
| Maintainers | kintuda |
| Keywords | retry, request, recursive |

## Links

- npm: https://www.npmjs.com/package/recursiveretry
- Repository: https://github.com/Kintuda/requestRetry
- Homepage: https://github.com/Kintuda/requestRetry#readme
- Issues: https://github.com/Kintuda/requestRetry/issues
- npm.io page: https://npm.io/package/recursiveretry

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.18.0

## Recent versions

- 1.0.4 (latest) — 2018-12-25
- 1.0.3 — 2018-12-23
- 1.0.2 — 2018-12-23
- 1.0.1 — 2018-12-23
- 1.0.0 — 2018-12-21

## README

### Description

This is a very basic implementation for retrying http request upon failure.

### Features

 - Usage of promises instead of callback.
 - Can recursive try to send request.
 - Can add timeout between requests.

### Installation

Installing the package is really easy, you only need to paste the command in your terminal, 
or just copy the code and use in your program, whatever is easier for you. 

Using npm
```
$ npm install --save retryrecursive
```
Using yarn
```
$ yarn add retryrecursive
```

### Example

Here's a example
```
const retry = require('retryrequest')

const main = async () => {
  try{
    const config = {
      data: { msg: 'Hello World' },
      url: 'http://example-url.com'
    }
    let response = await retry(3, 1000, config)
  }catch(error){
    console.log(`Error sending request, Error: ${error}`)
  }
}

main()

```


### Dependencies

This package only has one dependency, package axios.

### License

MIT

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