# ap-queuefy

> Easy way to limit maximum number of parallel promises

Latest version **1.0.1** (published 2023-04-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install ap-queuefy
pnpm add ap-queuefy
yarn add ap-queuefy
bun add ap-queuefy
```

## 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 | 2023-04-05 |
| First published | 2022-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Andrei Alexandru Pescaru |
| Maintainers | apescaru |
| Keywords | promise, concurrency |

## Links

- npm: https://www.npmjs.com/package/ap-queuefy
- Repository: https://github.com/apescaru/ap-queuefy
- Homepage: https://github.com/apescaru/ap-queuefy#readme
- Issues: https://github.com/apescaru/ap-queuefy/issues
- npm.io page: https://npm.io/package/ap-queuefy

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-04-05
- 1.0.0 — 2022-03-03

## README

# AP QUEUEFY

## v1.0.0

## aqpMap

### Usage

#### aqpMap takes 3 parameters

#### - items: Array = default array of items

#### - concurrency: Integer = number of concurrent promises to be resolved

#### - callback: Function = callback function with 1 parameter that modifies one item at a time

### Example

```Javascript
    import { apqMap } from "ap-queuefy";

    let items = [10, 20, 40, 100];
    (async () => {
        let results = await apqMap(items, 2, async function(item) {
            return item - 1;
        });

        console.log(results);
    })();
```

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