ForkQueue is a simple Node.js queue library (v0.0.8) that uses child_process.fork to distribute queue items to worker processes. Workers request the next item via 'next' messages, enabling parallel processing. It has no dependencies, is minimal and lightweight, but is in early development with no recent updates (last release 0.0.8). Unlike Bull or Bee-Queue, it lacks persistence, prioritization, or advanced features. Suitable for basic parallel task processing in Node.js.
npm install forkqueueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue with 2 workers, enqueues 10 items, and processes them using a worker module.
Use path.resolve if unsure: new Queue(2, path.resolve(__dirname, 'worker.js'))
Ensure process.send('next') is called initially and after each message.Consider implementing custom worker monitoring or use a more robust queue library.
Use const Queue = require('forkqueue');Provide absolute path or ensure relative path is correct from process.cwd()
No dependency data recorded yet.