A minimal wrapper around the 'queue' library providing QueueWorker and WorkersPipeline classes for limiting concurrent async operations. Current version 0.0.1 (pre-1.0). Lightweight, TypeScript-friendly. Wraps jessetane/queue, adds class-based worker pattern. Intended for simple job queues with concurrency control, but the API is minimal and the package is very early stage.
npm install workers-pipelineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define a custom QueueWorker subclass with payload, create a WorkersPipeline with concurrency limit 2, push workers, and await completion.
Pin version and test upgrades.
Use the 'that' parameter or bind methods correctly.
Manage pipeline state manually; ensure start() is called only once.
Wrap await pipeline.start() in try/catch and handle errors per worker.
npm install queue --save
Use import { WorkersPipeline } from 'workers-pipeline'Ensure constructor calls super() and assigns this.payload