</>PackageGraphPackageGraph

denque

npmv2.1.0TypeScript

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.

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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

30 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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(); // 4

denque vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
denquethis page30.4M1Apache-2.04 years ago
p-limit293.1M5MIT1 day ago
fastq122.5M1ISC1 day ago
graceful-fs024ISC1 day ago
asap01MIT1 day ago

Dependencies

Declared by denque v2.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

benchmark ^2.1.4codecov ^3.8.3double-ended-queue ^2.1.0-0istanbul ^0.4.5mocha ^3.5.3typescript ^3.4.1

Used by

Popular packages that depend on denque.

Relationship graph

Dependencies (left) and dependents (right) of denque.

mysql2denque
denque dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 31 days apart.

Recent versions of denque
VersionPublishedSizeLicense
2.1.0latest4 years ago30 KBApache-2.0
2.0.15 years ago28 KBApache-2.0
2.0.05 years ago18 KBApache-2.0
1.5.15 years ago17 KBApache-2.0
1.5.05 years ago23 KBApache-2.0
1.4.17 years ago23 KBApache-2.0
1.4.07 years ago22 KBApache-2.0
1.3.08 years ago22 KBAPACHE-2.0
1.2.68 years ago21 KBAPACHE-2.0
1.2.58 years ago21 KBAPACHE-2.0
1.2.48 years ago21 KBAPACHE-2.0
1.2.38 years ago47 KBMIT
1.2.29 years agoMIT
1.2.19 years agoMIT
1.2.09 years agoMIT

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

Keywords

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.