A lightweight, concurrency-controlled promise queue for Node.js (v0.5.7, last updated 2020). Executes promises in FIFO order with configurable concurrency. Supports pause/resume of the queue (ongoing promises complete). Includes TypeScript definitions. Differentiates from similar libraries (e.g., p-limit, bottleneck) by built-in pause/resume and simple API. No external dependencies. Stable but low release cadence; works with Node >=8.
npm install easy-promise-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with concurrency 2, adds promise-returning tasks, demonstrates pause/resume and multiple add patterns.
Use default import for ESM or .default for CJS as shown in imports.
Consider migrating to actively maintained alternatives like p-limit, bottleneck, or p-queue.
For strict ordering with concurrency >1, add tasks individually.
To cancel running tasks, you must use AbortController or similar mechanism outside the queue.
Use import PromiseQueue from 'easy-promise-queue' or const PromiseQueue = require('easy-promise-queue').default.Run npm install easy-promise-queue. Ensure package.json lists it.
If using an old Node version, verify package supports require. For Node >=12, use import or dynamic import().
No dependency data recorded yet.