
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.
cluster-call
Advanced tools
RPC between nodejs cluster master and workers. Javascript native and fluent style.
const cluster = require('cluster')
const node = require('cluster-call')
//Register a function named 'test' on "this node".
//Master and workers may have same or different methods
node.test = (a, b) => a + b
if (cluster.isMaster) {
let worker1 = cluster.fork()
//call method 'test' on worker1
node(worker1).test(33, 44)
.then(d => console.log('master receives', d))
.catch(console.error)
} else {
//call method 'test' on master
node('master').test(3, 4)
.then(d => console.log('child receives', d))
.catch(console.error)
.then(process.exit)
}
const cluster = require('cluster')
const node = require('cluster-call')
node.test = () => new Promise(() => 0) //Never resolves
if (cluster.isMaster) {
cluster.fork()
} else {
node('master').test()
.timeout(1000) //specify a timeout value for this call. By default, timeout is 10 seconds
.then(console.log)
.catch(err => console.error('Rejected:', err))
.then(process.exit)
}
FAQs
RPC between cluster master and children
We found that cluster-call 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.