A lightweight, promise-based queue built on top of the queue package, allowing users to push functions that resolve or reject and get a promise representing the task. Version 0.1.7 is the latest, with no active development. It supports concurrency control and automatic start. Compared to similar libraries, it provides a simple API with pushTask and unshiftTask, and inherits additional methods from the queue package. The library is ESM and CJS compatible, but does not include TypeScript typings.
npm install simple-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, pushes two tasks, and waits for both to complete.
Pass { autoStart: true } to the constructor, or call queue.start() after pushing tasks.Ensure callback invokes resolve(value) or reject(error).
Use queue methods like queue.start(), queue.stop(), etc., as documented in the parent package.
Create a .d.ts file: declare module 'simple-promise-queue' { ... }Create an instance: const queue = new Queue(); queue.pushTask(...)
Run npm install simple-promise-queue and ensure correct import syntax.
Ensure callback calls resolve(value) or reject(error).