{"id":46771,"library":"vow-queue","title":"vow-queue","description":"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.","status":"active","version":"0.4.3","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/dfilatov/vow-queue","tags":["javascript"],"install":[{"cmd":"npm install vow-queue","lang":"bash","label":"npm"},{"cmd":"yarn add vow-queue","lang":"bash","label":"yarn"},{"cmd":"pnpm add vow-queue","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"promise implementation used by queue","package":"vow","optional":false}],"imports":[{"note":"CommonJS only; no ES module support.","wrong":"import Queue from 'vow-queue';","symbol":"default","correct":"var Queue = require('vow-queue');"},{"note":"Queue is the constructor, not a factory.","wrong":"const queue = new queue({ weightLimit: 10 });","symbol":"Queue","correct":"const queue = new Queue({ weightLimit: 10 });"},{"note":"Second argument must be an object, not separate parameters.","wrong":"queue.enqueue(taskFn, weight: 2, priority: 3);","symbol":"enqueue","correct":"queue.enqueue(taskFn, { weight: 2, priority: 3 });"}],"quickstart":{"code":"var Queue = require('vow-queue');\nvar queue = new Queue({ weightLimit: 10 });\nqueue.enqueue(function() {\n  return 2 * 2;\n});\nqueue.enqueue(function() {\n  var promise = require('vow').Promise();\n  setTimeout(function() { promise.fulfill('done'); }, 100);\n  return promise;\n});\nqueue.enqueue(\n  function() {\n    console.log('high priority task');\n  },\n  { priority: 3, weight: 5 }\n);\nqueue.start();","lang":"javascript","description":"Creates a queue with weight limit 10, enqueues three tasks (one sync, one async promise-based, one with custom priority/weight), then starts processing."},"warnings":[{"fix":"npm install vow vow-queue","message":"Requires 'vow' promise library; ensure it is installed.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use queue.enqueue(fn, { weight: 2, priority: 3 });","message":"enqueue() parameters: second arg must be an object with optional 'weight' and 'priority' properties.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Call queue.start() after enqueuing tasks.","message":"Queue does not auto-start; you must call .start() explicitly.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.4.3':26 'allow':33 'altern':68 'base':82 'built':19 'bull':70 'concurr':43 'control':42 'custom':37 'depend':67 'enqueu':34 'environ':63 'includ':69 'javascript':10,83 'kue':72 'latest':29 'level':41 'librari':24 'lightweight':9 'limit':46 'minim':66 'node.js':62 'primarili':59 'prioriti':18,40 'promis':23,81 'promise-bas':80 'provid':55 'queue':3,6,12,48,76 'releas':31 'simpler':78 'stabl':30 'start':51 'statist':56 'stop':53 'support':14 'task':11,35 'use':60 'version':25 'via':44 'vow':2,5,22,75 'vow-queu':1,4,74 'weight':16,38,45","created_at":"2026-06-07T13:01:33.178452+00:00","updated_at":"2026-06-07T13:01:33.178452+00:00","problems":[{"fix":"npm install vow-queue","cause":"vow-queue not installed or not in node_modules","error":"Cannot find module 'vow-queue'"},{"fix":"Use var queue = new Queue();","cause":"Queue not instantiated correctly (e.g., missing 'new')","error":"TypeError: queue.enqueue is not a function"},{"fix":"var Queue = require('vow-queue');","cause":"Did not require the module","error":"ReferenceError: Queue is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dfilatov/vow-queue#readme","github":"ssh://git@github.com/dfilatov/vow-queue","docs":null,"changelog":null,"pypi":null,"npm":"vow-queue","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}