# sync-queue

> Simple queue for completing tasks in series

Latest version **0.0.2** (published 2014-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install sync-queue
pnpm add sync-queue
yarn add sync-queue
bun add sync-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.0.2 |
| Published | 2014-12-01 |
| First published | 2014-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Maintainers | johnnyman727 |

## Links

- npm: https://www.npmjs.com/package/sync-queue
- Repository: git@github.com:technicalmachine/sync-queue
- Homepage: https://github.com/technicalmachine/sync-queue
- Issues: https://github.com/technicalmachine/sync-queue/issues
- npm.io page: https://npm.io/package/sync-queue

## Recent versions

- 0.0.2 (latest) — 2014-12-01
- 0.0.1 — 2014-05-03

## README

#Sync-Queue

## Install
`npm install sync-queue`

## Usage

```.js
var Queue = require('sync-queue')
var queue = new Queue();

queue.place(function one() {
  console.log("I'm func one");

  setTimeout(function() {
    console.log("and I'm still finishing up...");
    queue.next();
  }, 1000);
})

queue.place(function two() {
  console.log("I'm the last func.");
  queue.next();
});
```

## Description
Use `place` to put things in the queue. They will start being executed automatically. Call `next` when you want the next thing in the queue to begin execution.

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