# fixedqueue

> implementation of a fixed queue in javascript

Latest version **0.0.1** (published 2014-03-12) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2014-03-12 |
| First published | 2014-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Scott Ballantyne with help from the internet |
| Maintainers | ussballantyne |
| Keywords | object, oriented, javascript, practice |

## Links

- npm: https://www.npmjs.com/package/fixedqueue
- Repository: https://github.com/ballantyne/fixedQueue
- Issues: https://github.com/ballantyne/fixedQueue/issues
- npm.io page: https://npm.io/package/fixedqueue

## Recent versions

- 0.0.1 (latest) — 2014-03-12

## README

# FixedQueue

Implementation of a fixed queue in javascript.
(Original concept found here: http://www.bennadel.com/blog/2308-Creating-A-Fixed-Length-Queue-In-JavaScript-Using-Arrays.htm)

## Installation

    npm install fixedqueue


Use from the command line:

    > var fixedQueue = require('fixedqueue').FixedQueue
    > var queue = fixedQueue(2, ['first', 'second'])
    > queue.enqueue('third')
    > queue.enqueue('fourth', 'fifth')
    > queue.enqueue('sixth', 'seventh')
    > queue
    [ 'third',
      'fourth',
      'fifth',
      'sixth',
      'seventh',
      permittedAmount: 5,
      trimTail: [Function],
      trimHead: [Function],
      push: [Function],
      unshift: [Function],
      splice: [Function],
      enqueue: [Function],
      dequeue: [Function] ]

    an so on...

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

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