MQEmitter is an opinionated message queue with an emitter-style API using callbacks, designed for Node.js. Current stable version is 7.1.0, requiring Node >=20. It supports topic matching with wildcards (+ and #) and configurable concurrency. Ships TypeScript definitions. Alternatives include Redis, MongoDB, and child-process backends. Good for in-process pub/sub with backpressure handling.
npm install mqemitterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows ESM import, creating an emitter with concurrency limit, subscribing to a topic, emitting a message, and closing the emitter.
Switch to ESM imports (import mq from 'mqemitter') or use dynamic import().
Upgrade Node.js to version 20 or later.
Use 'new MQEmitter()' or just 'mq()' as factory (both create instance).
Always call cb() with no argument or null.
Do not rely on error handling in emit callback; validate messages before emitting.
Convert your project to ESM or use dynamic import: const mq = await import('mqemitter');Ensure you use 'import mq from 'mqemitter'' and have esModuleInterop enabled in tsconfig.json.
Check listener signature: (message, done) => ... and call done() with no error.