tiny-linked-queue

JSON →
library 1.0.3 ·javascript
verified Jun 7, 2026

A lightweight, TypeScript-friendly queue implementation using a linked list, providing O(1) enqueue and dequeue operations. Compared to native arrays, it avoids the O(n) cost of Array.shift, making it ideal for high-throughput FIFO use cases. v1.0.3 is the current stable release. Ships TypeScript declarations and supports both ESM and CommonJS via conditional exports. Minimal API surface (enqueue, dequeue, clear, size, isEmpty, head, tail) with no dependencies. Bundle size gzipped < 1KB.