# run-loop-til-success

> Looping your task til success

Latest version **1.0.1** (published 2024-03-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install run-loop-til-success
pnpm add run-loop-til-success
yarn add run-loop-til-success
bun add run-loop-til-success
```

## 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.1 |
| Published | 2024-03-09 |
| First published | 2024-03-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | thucvn |
| Maintainers | thucvu164 |
| Keywords | loop, run, successfull |

## Links

- npm: https://www.npmjs.com/package/run-loop-til-success
- Repository: https://github.com/thucvn/run-loop
- Homepage: https://github.com/thucvn/run-loop#readme
- Issues: https://github.com/thucvn/run-loop/issues
- npm.io page: https://npm.io/package/run-loop-til-success

## Dependencies (1)

- [infinity-utils](https://npm.io/package/infinity-utils.md) ^1.0.1

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2024-03-09
- 1.0.0 — 2024-03-05

## README

This library helps you run task till successful\
First install the library
```
npm i run-loop-til-success
```
Import the library
```
const {loopTask} = require('run-loop-til-success')
```
Call the loop function
```
loopTask(ajax(xxx));
loopTask(ajax(xxx), failFunction);
loopTask(ajax(xxx), failFunction, maxRetries);
loopTask(ajax(xxx), failFunction, maxRetries, delayBetweenFail);
```

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