Promise queue for Node.js that maintains a queue of promises and tracks completion of individual jobs and the entire queue. Inspired by promise-queue but built specifically for Node.js with bluebird providing promises and async.queue for queue operations. Current stable version is 1.1.0, with a low release cadence (1.1.0 released with stat deprecations and additions; 1.0.0 added canAccept() and allowance). Differentiators include integration with bluebird, async.queue backing, and statistics tracking (complete, failed, succeeded).
npm install promiseqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a PromiseQueue with 4 workers, adding a single job via push(), and closing the queue to wait for drain.
Use `complete` instead of `processed` when accessing queue stats.
Use the returned promise to track individual job completion, or ignore it if only overall queue completion matters.
Install bluebird: `npm install bluebird`
Use require() or use a dynamic import() workaround if needed.
Run `npm install promiseq` in your project directory.
Use `const PromiseQueue = require('promiseq');` instead of `import PromiseQueue from 'promiseq';`.Install bluebird: `npm install bluebird` and require it before using PromiseQueue.