# tq

> tiny queue

Latest version **0.2.5** (published 2013-04-03) · 0 weekly downloads

## Install

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

## 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.2.5 |
| Published | 2013-04-03 |
| First published | 2011-12-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | architectd |

## Links

- npm: https://www.npmjs.com/package/tq
- npm.io page: https://npm.io/package/tq

## Dependencies (1)

- [hurryup](https://npm.io/package/hurryup.md) 0.0.x

## Recent versions

- 0.2.5 (latest) — 2013-04-03
- 0.2.4 — 2013-04-02
- 0.2.3 — 2013-04-01
- 0.2.2 — 2013-04-01
- 0.2.1 — 2013-03-14
- 0.2.0 — 2013-03-07
- 0.1.2 — 2013-03-07
- 0.1.0 — 2013-03-05
- 0.0.4 — 2012-06-09
- 0.0.3 — 2012-03-04
- 0.0.2 — 2012-02-17
- 0.0.1 — 2011-12-03

## README

[![Build Status](https://travis-ci.org/crcn/tq.js.png)](https://travis-ci.org/crcn/tq.js)

TQ is a flexible, tiny queue library for node.js

## Example

```javascript
var queue = require("tq").create().start();

```

Another variation

```javascript
var queue = require('tq').queue();


[
	function() {
		this();
	},
	function() {
		this()
	},
	function() {
		this();
	}
].forEach(queue.push);

queue.start();
```


## Api


### queue.push 
pushes a queue to the end

### queue.unshift
pushes a queue to the beginning (next up)

### queue.now(callback)

### queue.then(callback)

### callback queue.wait()

### queue.start
starts a queue

### queue.stop
stops a queue

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