A lightweight TypeScript queue library for internal systems. Version 1.3.5 provides a simple in-memory queue with producer-consumer pattern, automatic or manual message acknowledgment (ACK), and interceptor hooks (WhenAnyMessage, WhenZeroMessage, WhenQueueStopped, WhenQueueStarted, custom). It supports generics for typed messages and is ESM-only with TypeScript types included. No external dependencies. Designed for Node.js environments where a basic queue is needed without heavy infrastructure like Redis or Bull. NPM downloads are low, indicating niche use.
npm install necessary-utils-basic-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a typed queue, register a consumer with automatic acknowledgment, and push a message.
Use exact package name: necessary-utils-basic-queue.
Use only for ephemeral flows. For persistence, integrate with a database or use a library like Bull.
queue.Consume(callback, autoAck) – note capital letter.
Evaluate stability before using in production.
Run 'npm install necessary-utils-basic-queue' and verify import: import { BasicQueue } from 'necessary-utils-basic-queue'.Add '"type": "module"' to your package.json, or use .mjs extension for imports.
Use correct named import: import { BasicQueueMessage } from 'necessary-utils-basic-queue'.No dependency data recorded yet.