# promisqueue

> Execute queue of promises with concurrency

Latest version **1.0.3** (published 2016-12-22) · MIT license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2016-12-22 |
| First published | 2016-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dario |
| Maintainers | dario1985 |
| Keywords | promises, queue |

## Links

- npm: https://www.npmjs.com/package/promisqueue
- Repository: https://github.com/dario1985/promisqueue
- Homepage: https://github.com/dario1985/promisqueue#readme
- Issues: https://github.com/dario1985/promisqueue/issues
- npm.io page: https://npm.io/package/promisqueue

## Dependencies (1)

- [measured](https://npm.io/package/measured.md) ^1.1.0

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-12-22
- 1.0.2 — 2016-11-30
- 1.0.1 — 2016-11-29
- 1.0.0 — 2016-11-29

## README

# PromisQueue [![NPM Version](https://badge.fury.io/js/promisqueue.png)](https://npmjs.org/package/promisqueue) [![Build Status](https://travis-ci.org/dario1985/promisqueue.png?branch=master)](https://travis-ci.org/dario1985/promisqueue)

Simple ES6 Promises based queue, with optional (and flexible) concurrency.

## Installation

`promisqueue` can be installed using `npm`:

```
npm install promisqueue
```

## Interface

 - `new PromisQueue(Object options): PromisQueue`
 
 

### Methods:

 - `PromisQueue#add(Function factory): Number` - adds function argument that generates a promise to the queue (FIFO)
 - `PromisQueue#prepend(Function factory): Number` - adds function argument that generates a promise to the queue (LIFO)
 
### Properties:
 - `PromisQueue#length: Number` - returns current length of buffer(added but not started promise generators)
 - `PromisQueue#currentConcurrency: Number` - returns number of current concurrency limit

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