priorityqueue
JSON →PriorityQueue is a TypeScript-friendly JavaScript library implementing priority queues with multiple heap variants (BinaryHeap, PairingHeap, SkewHeap). Version 2.1.0 is current; updates are occasional. Key differentiators: supports custom comparators, offers three heap implementations with different performance trade-offs (BinaryHeap for general use, PairingHeap and SkewHeap for fast merge operations), exports ESM and includes TypeScript definitions. Suitable for algorithmic tasks, scheduling, and graph algorithms.
Resources
packagepriorityqueue ↗