dsqueue

0.1.1 • Public • Published

dsqueue

dsqueue stands for dead-simple queue.

Usage

var Queue = require('dsqueue'),
    q = Queue()
 
q.enqueue({ anyValue: true}) //add first argument to queue
q.dequeue() // { anyValue: true }
 
q.enqueue(3)
q.enqueue(2)
q.enqueue(1)
 
q.examine() // [3, 2, 1]
q.length // 3

Tests

There some tests and (horribly wrong) benchmarks, run it with npm test

Readme

Keywords

Package Sidebar

Install

npm i dsqueue

Weekly Downloads

2

Version

0.1.1

License

GPLv3

Last publish

Collaborators

  • marinintim