light-queue 1.0.0 is a zero-dependency, lightweight FIFO queue for Node.js and browsers. Released as stable 1.0.0, it offers a simple API with push, pop, drain, isEmpty, and size methods. Unlike more complex queue libraries, it focuses on minimal overhead and ease of use for throttling, retries, and basic queue management. It is actively maintained and suitable for both small and moderate-scale queuing needs.
npm install light-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic FIFO operations: push, pop (single and multiple), drain, and isEmpty.
Use Queue() as a factory function without 'new'.
Always check the return type when calling pop() without arguments vs with an argument.
Use with callbacks or loops for async processing.
Replace 'new Queue()' with 'Queue()'.
Use require('light-queue') or try import * as Queue from 'light-queue'.No dependency data recorded yet.