
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 fs-socketed ipc handler with Server, Client and Messenger
Install with npm
npm i ipc-pager
//Define your socket handle
const HANDLE = '/tmp/pagetest.sock'
//Define your communication routing
const ROUTES = {
short : async ( data ) => {
console.log('-short test-',data)
return 'short result'
},
long : async ( data ) => {
console.log('-long test-',data)
await new Promise(end => setTimeout(end,5000))
return 'long result'
},
longer : async ( data ) => {
console.log('-long test-',data)
await new Promise(end => setTimeout(end,10000))
return 'long result'
}
}
//Initialize a Server with handle and routing
const Pager = require('ipc-pager')
const server = Pager(HANDLE).Server(ROUTES)
server.start()
.then(() => console.log(`Pager listening to ${HANDLE}`))
//Define your socket handle
const HANDLE = '/tmp/pagetest.sock'
//Initialize a messenger to handle
const Pager = require('ipc-pager')
const messenger = Pager(HANDLE).Messenger
//Send a message and log the resulting buffer
messenger({ action:'short', data:'Some test data' })
.then(buf => console.log(buf.toString()))
.catch(console.error)
//Send a message and log the resulting json
messenger({ action:'long', data:'Some test data' })
.then(console.log)
.catch(console.error)
//Send a message and log the resulting json
messenger({ action:'long', data:'Some test data' }, 'json')
.then(console.log)
.catch(console.error)
//Send a message and log the resulting string
messenger({ action:'longer', data:'Some test data' }, 'string')
.then(console.log)
.catch(console.error)
FAQs
fs-socketed ipc server/client/messenger
We found that ipc-pager 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.