Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
watch-notify
Advanced tools
The omnipresent publish subscribe design pattern. The observers are called in the same order that they are added. If an observer throws an error when executed, the exception is caught and the execution continue to the next one.
npm install watch-notify
Require and initialize watch-notify:
var watchNotify = require("watch-notify");
var watchNotify = new WatchNotify();
Watch on a specific topic:
var handle = watchNotify.watch("topic", function handler(message) {
// this === scope
}, scope /* optional */);
The topic can also be a number:
var handle = watchNotify.watch(1337, function handler() { ... });
Notify on a specific topic:
watchNotify.notify("topic", "hi!");
Several types can be given to notify:
watchNotify.notify("topic", "message1", "message2", anObject, ...);
Remove an observer:
watchNotify.unwatch(handle);
Observe only once. The handler will be called once and then removed, so any new message on topic
won't trigger it.
var handle = watchNotify.once("topic", function handler() { ... });
Remove the handler before it's even called for the first time:
watchNotify.unwatch(handle);
MIT
FAQs
The omnipresent publish subscribe design pattern.
The npm package watch-notify receives a total of 17 weekly downloads. As such, watch-notify popularity was classified as not popular.
We found that watch-notify 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.