
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
EventBoi is a super-simple, typesafe event bus.
It allows subscribing to pre-defined events and their associated payloads.
npm install event-boi
yarn add event-boi
event-boi
is designed to be used with TypeScript (although there's nothing stopping you from using it in plain JavaScript). The possible events should be declared when creating an event bus instance. The TS compiler will then ensure that only events that exist can be published and subscribed to and that the payloads for each event is correct.
import createEventBus from "event-boi";
// if using TypeScript you must pre-define the events and their payloads.
interface Events {
game_played: { result: "win" | "loss" };
message_sent: string;
}
const MyEventBus = createEventBus<Events>();
const unsubscribe = MyEventBus.subscribe("message_sent", (message) => {
console.log(`A message was sent with the content "${message}"`);
});
// later...
MyEventBus.publish("message_sent", "Hello, world");
// logs: A message was sent with the content "Hello, world"
// to unsubscribe just call the `unsubscribe` function returned from the `subscribe` method:
unsubscribe();
FAQs
A super-simple event bus
The npm package event-boi receives a total of 52 weekly downloads. As such, event-boi popularity was classified as not popular.
We found that event-boi 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.