# runner-runner-collection

> Collection library

Latest version **1.0.1** (published 2017-03-15) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install runner-runner-collection
pnpm add runner-runner-collection
yarn add runner-runner-collection
bun add runner-runner-collection
```

## 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.1 |
| Published | 2017-03-15 |
| First published | 2017-03-15 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vlad Chernikov |
| Maintainers | vlad |
| Keywords | collection, collections, data structures, queue |

## Links

- npm: https://www.npmjs.com/package/runner-runner-collection
- Repository: https://github.com/jaguardev/node-runner-runner-collection
- Homepage: https://github.com/jaguardev/node-runner-runner-collection#readme
- Issues: https://github.com/jaguardev/node-runner-runner-collection/issues
- npm.io page: https://npm.io/package/runner-runner-collection

## 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.1 (latest) — 2017-03-15
- 1.0.0 — 2017-03-15

## README

<a name="Queue"></a>

## Queue
Class Queue
<pre>
'use strict';
const Collection = require('runner-runner-collection');

let queue = new Collection.Queue();

queue.enqueue("Winnie");
queue.enqueue("Christopher");
queue.enqueue("Tigra");

for (let object of queue) {
	console.log(object);
}
</pre>

**Kind**: global class  

* [Queue](#Queue)
    * [.dequeue()](#Queue+dequeue) ⇒ <code>\*</code>
    * [.enqueue(object)](#Queue+enqueue)
    * [.peek()](#Queue+peek) ⇒ <code>\*</code>
    * [.clear()](#Queue+clear)
    * [.contains(object)](#Queue+contains)
    * [.size()](#Queue+size) ⇒ <code>Number</code>

<a name="Queue+dequeue"></a>

### queue.dequeue() ⇒ <code>\*</code>
Removes and returns an object from the head of the Queue

**Kind**: instance method of <code>[Queue](#Queue)</code>  
**Returns**: <code>\*</code> - object from the head of the Queue  
<a name="Queue+enqueue"></a>

### queue.enqueue(object)
Adds an object to the tail of the Queue

**Kind**: instance method of <code>[Queue](#Queue)</code>  

| Param | Type | Description |
| --- | --- | --- |
| object | <code>\*</code> | to be added to the tail of the Queue |

<a name="Queue+peek"></a>

### queue.peek() ⇒ <code>\*</code>
Returns an object from the head of the Queue, but does not remove it

**Kind**: instance method of <code>[Queue](#Queue)</code>  
**Returns**: <code>\*</code> - object from the head of the Queue  
<a name="Queue+clear"></a>

### queue.clear()
Removes all objects from the Queue

**Kind**: instance method of <code>[Queue](#Queue)</code>  
<a name="Queue+contains"></a>

### queue.contains(object)
Tests if an object in the Queue

**Kind**: instance method of <code>[Queue](#Queue)</code>  

| Param | Type | Description |
| --- | --- | --- |
| object | <code>Boolean</code> | to look |

<a name="Queue+size"></a>

### queue.size() ⇒ <code>Number</code>
Return a size of the Queue

**Kind**: instance method of <code>[Queue](#Queue)</code>  
**Returns**: <code>Number</code> - size of the Queue

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