# dank-do-while

> An asynchronous do-while-like function

Latest version **1.0.1** (published 2024-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install dank-do-while
pnpm add dank-do-while
yarn add dank-do-while
bun add dank-do-while
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2024-05-28 |
| First published | 2012-10-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 69.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dan VerWeire |
| Maintainers | wankdanker |
| Keywords | do, while, async |

## Links

- npm: https://www.npmjs.com/package/dank-do-while
- Repository: https://github.com/wankdanker/node-dank-do-while
- Homepage: https://github.com/wankdanker/node-dank-do-while#readme
- Issues: https://github.com/wankdanker/node-dank-do-while/issues
- npm.io page: https://npm.io/package/dank-do-while

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2024-05-28
- 1.0.0 — 2024-05-28
- 0.1.2 — 2014-07-03
- 0.1.1 — 2013-10-04
- 0.1.0 — 2012-10-10

## README

dank-do-while
---------------

An asynchronous do-while-like function for node

install
-------

```bash
npm install dank-do-while
```

method
------

### doWhile(eachFunction, doneFunction, concurrency);

**eachFunction** will be called once initially and then again
  for each time that `next(truthy)` is called

  Signature is `function(next)`

**doneFunction** will be called once when `next(falsy)` is called

**concurrency** the number of concurrent **eachFunction**'s that may be executed

example
-------

```javascript
import { doWhile } from 'dank-do-while';

doWhile(function (next) {	
	someAsyncFunction(function (err, result) {
		return next(result !== 'done');
	});
}, function () {
	console.log('done');
});
```

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