codigo0/backend/node_modules/denque
planetazuzu 0201f16cf4
Some checks are pending
Auto Deploy to Server / deploy (push) Waiting to run
Update lab configuration 2026-03-22
2026-03-22 22:50:29 +01:00
..
CHANGELOG.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
index.d.ts Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
index.js Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
LICENSE Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
package.json Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00
README.md Update lab configuration 2026-03-22 2026-03-22 22:50:29 +01:00

Denque

NPM downloads NPM version Tests status Coverage License Follow on Twitter

Denque is a well tested, extremely fast and lightweight double-ended queue implementation with zero dependencies and includes TypeScript types.

Double-ended queues can also be used as a:

This implementation is currently the fastest available, even faster than double-ended-queue, see the benchmarks.

Every queue operation is done at a constant O(1) - including random access from .peekAt(index).

Works on all node versions >= v0.10

Quick Start

Install the package:

npm install denque

Create and consume a queue:

const Denque = require("denque");

const denque = new Denque([1,2,3,4]);
denque.shift(); // 1
denque.pop(); // 4

See the API reference documentation for more examples.


Who's using it?

... and many more.


License


Built and maintained by Invertase.