# @dx-libs/queue

> Yet another simple task queue

Latest version **0.1.0** (published 2019-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dx-libs/queue
pnpm add @dx-libs/queue
yarn add @dx-libs/queue
bun add @dx-libs/queue
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-02-26 |
| First published | 2019-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dx Team |
| Maintainers | dx-team |
| Keywords | queue, tasks |

## Links

- npm: https://www.npmjs.com/package/@dx-libs/queue
- Repository: https://github.com/dx-libs/queue
- Homepage: https://github.com/dx-libs/queue#readme
- Issues: https://github.com/dx-libs/queue/issues
- npm.io page: https://npm.io/package/@dx-libs/queue

## Dependencies (3)

- [@dx-libs/timeout](https://npm.io/package/@dx-libs/timeout.md) ^0.1.1
- [dxlibs-collection](https://npm.io/package/dxlibs-collection.md) ^1.0.0
- [semaphore-async-await](https://npm.io/package/semaphore-async-await.md) ^1.5.1

## 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

- 0.1.0 (latest) — 2019-02-26

## README

# @dx-libs/queue <sub><sup><sub><sup>v0.1.0</sup></sub></sup></sub>
~~~
Otra simple cola de tareas
~~~

## Scripts
```powershell
npm run eslint
```
```powershell
npm run test-watch
```
```powershell
npm run test
```
```powershell
npm run sonar
```

## Instalación

### Como libreria
```powershell
npm install --save @dx-libs/queue
```

## Modo de uso

```javascript
const timeout = require('@dx-libs/timeout');
const Queue = require("@dx-libs/queue");

const queue = Queue.from("Hola mundo");
queue
    .timeout(10000)
    .task(async (c) => await timeout(() => c.toUpperCase(), 250))
    .on('items', (items, arr) => {
        console.log('Items:',items.length, ' Arr:', arr.length);
    })
    .run(3)
    .then(result => {
        console.log('result:', result.join(''));
    })
    .catch(error => console.error(error));
```
---

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