A simple Node.js library for creating sequential job queues where each task is a child process. Version 2.1.0 is the latest stable release, with infrequent updates. It differentiates from other job queue libraries by focusing solely on child process execution in strict sequence, with built-in events (task, exit, end) and an abort mechanism that kills the current process (default SIGKILL).
npm install lib-job-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a sequential job queue, adds a single echo task, and listens for exit and end events.
If you need graceful shutdown, pass a different signal like 'SIGTERM' to abort().
Be careful about adding tasks after the queue has ended; consider resetting or managing state accordingly.
Always include the parentheses: require('lib-job-queue')().Access job.current within a 'task' event handler or when you know a process is active.
Change to require('lib-job-queue')() to get the constructor function.Ensure you have created a job instance: var job = Job.New(); before using job.emitter.
Provide an object with exec, args, envs: job.add({ exec: 'ls', args: ['-la'], envs: process.env });No dependency data recorded yet.