queue-lit

JSON →
library 3.2.2 ·javascript
verified Jun 7, 2026

A tiny, fast queue data structure for JavaScript/TypeScript (v3.2.2, updated 2024). Provides O(1) push/pop operations as an alternative to Array#shift() which is O(n). ESM-only, ships TypeScript declarations, no dependencies. Iterable, with push, pop, clear, and size. Ideal for high-frequency enqueue/dequeue patterns like breadth-first search or stream buffering.