vow-queue is a lightweight JavaScript task queue with support for weights and priorities, built on the Vow promise library. Version 0.4.3 is the latest stable release. It allows enqueuing tasks with custom weight and priority levels, controlling concurrency via weight limits. The queue can be started and stopped, and provides statistics. It is primarily used in Node.js environments and has minimal dependencies. Alternatives include Bull or Kue but vow-queue is simpler and promise-based.
npm install vow-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with weight limit 10, enqueues three tasks (one sync, one async promise-based, one with custom priority/weight), then starts processing.
npm install vow vow-queue
Use queue.enqueue(fn, { weight: 2, priority: 3 });Call queue.start() after enqueuing tasks.
npm install vow-queue
Use var queue = new Queue();
var Queue = require('vow-queue');