
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.
@dandre3000/thread
Advanced tools
Thread is a class that features a consistent API for using Workers on a web browser, node, bun or deno. All Threads are interconnected and can import modules to and call functions from each other.
npm install @dandre3000/thread
import { Thread } from '@dandre3000/thread'
// When a Thread is created
Thread.eventTarget.addEventListener('online', event => console.log('online event', event.thread.id, Thread.id))
// When a Thread has closed
Thread.eventTarget.addEventListener('exit', event => console.log('exit event', event.threadId, Thread.id))
// This function is exposed to other Threads
Thread.setFunction('test', (...args) => {
return `Thread ${Thread.id} says: YO`
})
if (Thread.isMainThread) {
console.log(Thread.id) // 0
console.log(Thread.workerData) // null
console.log(Thread.mainThread) // null
Thread.create(999).then(async thread => {
await thread.import(new URL(import.meta.url))
console.log(await thread.call('test')) // Thread 1 says: YO
})
} else {
console.log(Thread.id) // 1
console.log(Thread.workerData) // 999
console.log(Thread.mainThread) // Thread instance for main thread
}
FAQs
A class for managing web and node.js Workers.
The npm package @dandre3000/thread receives a total of 9 weekly downloads. As such, @dandre3000/thread popularity was classified as not popular.
We found that @dandre3000/thread demonstrated a healthy version release cadence and project activity because the last version was released less than 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.