A lightweight queue processor for managing asynchronous task dispatch, version 0.1.8, with moderate release cadence. Provides a centralized queue that can be started and stopped, ensuring messages are processed sequentially to avoid loss from unawaited promises. Simpler alternatives include bull or async queues, but this package offers minimal setup and built-in TypeScript types.
npm install queue-proccessorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a QueueProccessor with a typed async handler, adding items, starting and stopping the queue.
Use 'queue-proccessor' in package.json and imports.
Wrap handler errors manually or use a global error handler.
Check isProccessing after stop() to ensure queue fully stopped.
Always specify the generic type for type safety, e.g., QueueProccessor<number>.
Evaluate alternatives if reliability is critical.
import { QueueProccessor } from 'queue-proccessor'npm install queue-proccessor && ensure tsconfig.json includes node_modules
Use import { QueueProccessor } from 'queue-proccessor' and check package version.No dependency data recorded yet.