A Node.js promise-based queue that processes items via a user-defined callback with configurable concurrency, retries, timeouts, and queue size limits. Version 1.2.1 is stable, with low release cadence (last update 2015). Compared to alternatives like async.queue or bull, it offers a simpler, promise-free API (uses deferreds) and built-in retry/timeout per item. No external dependencies. Supports ESM/CJS via require(). Ships with TypeScript types via DefinitelyTyped (@types/limiting-queue).
npm install limiting-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a limiting-queue with concurrency 2, retries 3, timeout 5s, and a callback that fulfills/rejects via deferred. Shows push and start.
Use async.queue or p-limit for modern Promise support.
Check return value: if (!queue.push(payload)) { /* handle queue full */ }Stick to one insertion method consistently, or use only prioritize.
Call queue.stop() and queue.start() after changing options to ensure they take effect.
Always set a positive integer for maxWorkers, e.g., 5.
Use import LimitingQueue from 'limiting-queue' or const LimitingQueue = require('limiting-queue')Define callback with three parameters: function(payload, previousAttempts, deferred) { ... }const queue = new LimitingQueue(options);
No dependency data recorded yet.