Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 694 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 694 Bytes

Cuejs npm codecov

A Base representation of a Queue in Javascript.

Node version was tested using v7.1.0 so be aware that older versions may not work yet.

TODOs

  1. Error Handling
  2. Stress test
  3. Investigate Node.js version restrictions

How to run it you ask?

const Queue = require('queuer');
const queue = new Queue();

queue.enq(1);
queue.deq(); // returns value 1
queue.peek(); // returns next value to be dequeued
queue.size();