{"library":"redis-eventemitter","type":"library","category":null,"description":"Redis pub/sub using a simple event emitter. Current stable version 2.0.1. Wraps the event emitter pattern around Redis pub/sub, allowing Node.js developers to use familiar .on() and .emit() methods for pub/sub messaging. Supports pattern subscriptions with wildcards, prefixes for namespacing channels, and custom Redis clients. Differentiates by providing a high-level API that abstracts Redis pub/sub details, though it is limited in flexibility and has known gotchas with error handling and prefix behavior.","language":"javascript","status":"active","version":"2.0.1","tags":["javascript","redis","event","emitter","eventemitter","pubsub","publish","subscribe","unsubscribe"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-eventemitter","imports":["import redisEventEmitter from 'redis-eventemitter';","const redis = require('redis-eventemitter'); const pubsub = redis({ url: '...' });","pubsub.on('error', console.error);\npubsub.on('*:newuser', (channel, msg) => {});","pubsub.emit('myevent', { data: 1 });"]},{"cmd":"yarn add redis-eventemitter","imports":[]},{"cmd":"pnpm add redis-eventemitter","imports":[]}],"homepage":"https://github.com/freeall/redis-eventemitter#readme","github":"ssh://git@github.com/freeall/redis-eventemitter","docs":null,"changelog":null,"pypi":null,"npm":"redis-eventemitter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}