# qonvoy

> An extremely minimal task runner

Latest version **0.0.5** (published 2017-09-23) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-09-23 |
| First published | 2017-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nate Upstairs |
| Maintainers | nateupstairs |

## Links

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

## Dependencies (3)

- [uuid](https://npm.io/package/uuid.md) ^3.1.0
- [redis](https://npm.io/package/redis.md) ^2.8.0
- [promise-redis](https://npm.io/package/promise-redis.md) ^0.0.5

## Recent versions

- 0.0.5 (latest) — 2017-09-23
- 0.0.4 — 2017-09-22
- 0.0.3 — 2017-09-21
- 0.0.2 — 2017-09-21
- 0.0.1 — 2017-09-21

## README

# Qonvoy

> an extremely minimal task runner

> use typescript -_-

```javascript
const Qonvoy = require('qonvoy')

Qonvoy.init({
    redisConnectionString: process.env.REDIS_URL, // redis connection string
    retention: 60*60*24 // how many seconds to keep finished data
})

var firstItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 1.0
})

var secondItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 2.0
})

var thirdItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 3.0
})

async function processFunc(item: Qonvoy.Item) {
    console.log(item.aTestTask)
    return true
}

Qonvoy.processOne('testqueue', secondItem, processFunc) // specify run second item first
Qonvoy.processNext('testqueue', processFunc) // first item - next in queue
Qonvoy.processNext('testqueue', processFunc) // third item - next in queue
```

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