denque
npmv2.1.0TypeScriptThe fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries. Maintains compatability with deque.
Not recommended for new projects
No — denque should not be adopted for new projects. Last published 1514 days ago.
- AAdoption: grade A, Excellent.
30.4M downloads per week and 1 known dependents.
- FMaintenance: grade F, Failing.
Last published 1514 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 30 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
Apache-2.0 — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding denque to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=0.10
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the denque README.
const Denque = require("denque");
const denque = new Denque([1,2,3,4]);
denque.shift(); // 1
denque.pop(); // 4denque vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| denquethis page | 30.4M | 1 | Apache-2.0 | 4 years ago |
| p-limit | 293.1M | 5 | MIT | 1 day ago |
| fastq | 122.5M | 1 | ISC | 1 day ago |
| graceful-fs | 0 | 24 | ISC | 1 day ago |
| asap | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by denque v2.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on denque.
Relationship graph
Dependencies (left) and dependents (right) of denque.
Frequently installed together
TypeScript definitions for node
Prettier is an opinionated code formatter
A Long class for representing a 64-bit two's-complement integer value.
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
Module that helps you write generated functions in Node
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
Extract meaning from JS Errors
AWS RDS SSL certificates bundles.
sql named placeholders to unnamed compiler
Convert character encodings in pure javascript.
Release history
No releases in the last two years, typically about 31 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.1.0latest | 4 years ago | 30 KB | Apache-2.0 |
| 2.0.1 | 5 years ago | 28 KB | Apache-2.0 |
| 2.0.0 | 5 years ago | 18 KB | Apache-2.0 |
| 1.5.1 | 5 years ago | 17 KB | Apache-2.0 |
| 1.5.0 | 5 years ago | 23 KB | Apache-2.0 |
| 1.4.1 | 7 years ago | 23 KB | Apache-2.0 |
| 1.4.0 | 7 years ago | 22 KB | Apache-2.0 |
| 1.3.0 | 8 years ago | 22 KB | APACHE-2.0 |
| 1.2.6 | 8 years ago | 21 KB | APACHE-2.0 |
| 1.2.5 | 8 years ago | 21 KB | APACHE-2.0 |
| 1.2.4 | 8 years ago | 21 KB | APACHE-2.0 |
| 1.2.3 | 8 years ago | 47 KB | MIT |
| 1.2.2 | 9 years ago | — | MIT |
| 1.2.1 | 9 years ago | — | MIT |
| 1.2.0 | 9 years ago | — | MIT |
Overview
denque is an npm package that the fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries. Maintains compatability with deque. It is extremely widely used, with about 30.4M downloads per week and 1 known dependents in the graph. The latest version is 2.1.0, released under the Apache-2.0 license.
Who should use it
Teams working in the npm ecosystem who need the fastest javascript implementation of a double-ended queue. Used by the official Redis, MongoDB, MariaDB & MySQL libraries for Node.js and many other libraries. Maintains compatability with deque and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (30.4M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (Apache-2.0).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use denque?
No — denque should not be adopted for new projects. Last published 1514 days ago.
How do I install denque?
Run `npm install denque` to add denque to your npm project.
What license is denque released under?
denque is distributed under the Apache-2.0 license.
How popular is denque?
denque has approximately 30,392,203 downloads per week and 1 known dependent packages.
Is denque still maintained?
The most recent release of denque (v2.1.0) was published 4 years ago.
Does denque run install scripts?
No. denque does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.