js-priority-queue

JSON →
library 0.1.5 ·javascript maintenance
verified Jun 7, 2026

A priority queue data structure library for JavaScript (v0.1.5) offering Array, BinaryHeap, and BHeap strategies. Provides standard operations: queue, dequeue, peek, clear, and length. Ideal for managing ordered data efficiently; defaults to BinaryHeap for O(log n) insert and extract. Lightweight, dependency-free, works in Node.js and browsers via CommonJS/AMD/global. Last updated in 2014, considered stable but unmaintained.