
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@tuxjs/eventbus
Advanced tools
EventBus is library support subcribe and publish event in Javascript, Typescript
Install nodejs in your computer click here
npm install @tuxjs/eventbus
npm install @tuxjs/eventbus --save-dev
const EventBus = require('@tuxjs/eventbus');
const sub = EventBus.subcribe('event', (value) => {
console.log('value: ' + value);
});
EventBus.publish('event', 'Hello es5');
sub.unsubcribe();
EventBus.publish('event', 'Hello es5 again');
import EventBus, { Subcriber } from '@tuxjs/eventbus';
const eventBus = new EventBus();
var sub1:Subcriber = eventBus.subcribe('event1', (value: any) => {
console.log('1: ' + value);
});
eventBus.subcribe('event1', (value: any) => {
console.log('1: ' + value);
});
eventBus.subcribe('event2', (value: any) => {
console.log('2: ' + value);
});
eventBus.subcribe('event3', (value: any) => {
console.log('3: ' + value);
});
eventBus.publish('event1', 1);
eventBus.publish('event2', 'hello es6');
eventBus.publish('event3', "Hi");
sub1.unsubcribe();
console.log('-----');
eventBus.publish('event1', 100);
eventBus.publish('event2', 'hello es6 again');
eventBus.publish('event3', "Say goodbye");
eventBus.getSubcribers()
Repository TuxJS-EventBus click here
FAQs
Event Bus for JavaScript
We found that @tuxjs/eventbus 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.