queue-promise (v2.2.1) is a minimal, zero-dependency library for managing concurrent promise-based queues in Node.js. It provides configurable concurrency (default 5) and interval (default 500ms) controls, task enqueuing/dequeuing, and event emission (start, stop, end, resolve, reject). Unlike heavier alternatives like Bull or bee-queue, it is dependency-free and suitable for simple in-process queueing. The library ships TypeScript definitions, has a stable release cadence, and supports both automatic and manual start modes. Compatible with Node >=8.12.0.
npm install queue-promiseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with concurrency 1 and 2-second interval, enqueues three async tasks, logs results.
Update import to `import Queue from 'queue-promise'` and instantiate with `new Queue(options)`.
Use `enqueue` instead.
Wrap promises in a function: `() => myPromise`.
Use `while (queue.shouldRun) { await queue.dequeue(); }`.Use `import Queue from 'queue-promise'` instead of `import { Queue } from 'queue-promise'`.Wrap the promise in a function: `queue.enqueue(() => somePromise)`.
No dependency data recorded yet.