mini-queue v0.0.14 is a lightweight in-memory job queue for Node.js (engine >=4). It provides a state machine for job lifecycle (new, queue, dequeue, process, complete, reject, cancel) with journaling of state transitions and timestamps. It supports grouping jobs by group and name, and limits journal length. The package is minimal with no external dependencies, suitable for simple queuing needs without persistence or distributed workers. Last updated in 2017-2018, it is in maintenance mode.
npm install mini-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MiniQueue instance with concurrency 2, creates a job with auto-start, and another manually queued job.
Ensure process callback invokes done(err, result) exactly once.
Use job.id as unique identifier; do not assume sequential ordering across groups.
Consider modern alternatives like Bull, Bee-Queue, or agenda.
Use 'const MiniQueue = require('mini-queue'); const queue = new MiniQueue();'Check job state before queuing or use the start: true option in createJob.
No dependency data recorded yet.