
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Simple package to publish/subscribe to IPC channels.
Main purpose of this module is to create separate publish/subscribe redis client instances in one object.
With redis client you would work with subscribe/publish in the next way:
.. code-block:: javascript
var redis = require("redis");
var sub = redis.createClient(), pub = redis.createClient();
var msg_count = 0;
sub.on("subscribe", function (channel, count) {
pub.publish("a nice channel", "I am sending a message.");
pub.publish("a nice channel", "I am sending a second message.");
pub.publish("a nice channel", "I am sending my last message.");
});
sub.on("message", function (channel, message) {
console.log("sub channel " + channel + ": " + message);
msg_count += 1;
if (msg_count === 3) {
sub.unsubscribe();
sub.quit();
pub.quit();
}
});
sub.subscribe("a nice channel");
So, we combine this two redis client instances in one object and expose functions to publish, subscribe and return EventEmitter for incoming messages:
.. code-block:: javascript
const IPC = require('redis-ipc');
let myIPC = IPC({
debug: false
});
myIPC.on('connect', _ => {
console.log('connect event');
myIPC
.subscribe('0x00/playback/state')
.on('subscribe', _ => {
myIPC
.publish('0x00/playback/state', "Hello, friend");
})
.on('message', message => {
console.log(`got message: ${message}`);
myIPC
.unsubscribe('0x00/playback/state');
myIPC
.subscribe('hello')
.on('subscribe', _ => {
myIPC
.publish('hello', 'friend');
})
.on('message', message => {
console.log(`another message: ${message}`);
})
});
});
myIPC.on('error', err => {
console.log(`err ${err}`)
});
myIPC.connect();
FAQs
Simple redis pub/sub module. Two redis client instances in one object.
We found that redis-ipc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.