
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.
web-instance
Advanced tools
Manager the instances of a web page open multiple tabs/windows
npm install web-instance
import WebInstance from 'web-instance'
// The basic
WebInstance
.done((nodetype, status) => {
console.log(nodetype) // master or slave
console.log(status) // online or offline
})
.nextTick(() => {
// this function will be called every x miliseconds, only while online
// check WebInstance.tickMs
})
.on(WebInstance.ON_NODETYPE_CHANGED, (nodetype) => {
console.log(nodetype) // master or slave
})
.on(WebInstance.ON_CONNECTION_STATUS, (status) => {
console.log(status) // online or offline
})
// Listening to a specific message
WebInstance
.on('hi', (event) => {
console.log('received', event.message)
// Response
return `hi ${event.from}, my uuid is ${WebInstance.uuid()}`
})
// Listening to a localStorage key
.watch('key', (event) => {
console.log('value of key is', event.message)
})
// Sending message
WebInstance
.send('hi', `hi i'm ${WebInstance.uuid()}`)
.then(responses => {
// responses is an Array with all responses
console.log('responses from "hi" message', responses)
})
// Outhers methods
WebInstance.broadcast() // return all nodes (Promisse)
WebInstance.exists('uuid') // return true if uuid exists (Promisse)
WebInstance.timeout(400) // set timeout for responses, default is 400ms
FAQs
Manager the instances of a web page open multiple tabs/windows
We found that web-instance 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.