A lightweight FIFO queue implemented as a linked list, avoiding the O(n) cost of Array.shift(). Current version 0.2.1, stable but rarely updated. Differentiator: minimal overhead (~38 lines) for environments where array shift is a bottleneck, such as high-throughput message passing. Not suitable for priority queues or complex data structures.
npm install tiny-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic push/shift FIFO behavior, including returning undefined for empty queue.
Check queue.length before calling shift if undefined is a valid value.
None — this is expected behavior, but note for clarity.
Use require('tiny-queue') or configure bundler to convert CommonJS.Consider using a maintained alternative like 'denque' or 'double-ended-queue' which offer more features and TypeScript support.
Use new Queue() instead of just Queue().
Run npm install tiny-queue and ensure node_modules includes it.
No dependency data recorded yet.