Qbox is a lightweight queue management library for Node.js, version 0.1.7, with a jQuery-like API for chaining asynchronous operations. It provides a simple way to sequence tasks, handle completion and error callbacks, and control flow with pause/resume and limit features. Compared to full-featured queue libraries like Bull or async.js, Qbox focuses on simplicity and minimal dependencies, suitable for small-scale task orchestration without need for persistence or distributed processing. The package is mature but not actively updated, with sparse releases.
npm install qboxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, adds two tasks, sets a completion handler, and runs the queue.
Update calls from Q() to new Q() or use the static factory Q.box().
Replace q.run() with q.start().
Always invoke next() when the task is complete, even on error (with an error argument).
Always attach a complete() handler to catch errors.
Ensure import is correct: import Q from 'qbox' or const Q = require('qbox').defaultGuard next() calls with a done flag to prevent double invocation.
Ensure tasks do not call themselves directly within the task callback; use q.prepend or q.append for new tasks.
No dependency data recorded yet.