
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
ste-simple-events
Advanced tools
Add the power of Simple Events to your projects. Every event has an argument with its data.
Simple events are a type of event that will provide an argument
with data when fired. If you use typescript, you can leverage the support for generics and get strongly typed code.
Need a different type of event? Check out the others.
An example says more than a 1000 words. Imagine if you have events like this on your class:
let clock = new Clock("Smu", 1000);
//log the name of the clock and the tick argument to the console - this is an event
clock.onClockTick.subscribe((c, n) =>
console.log(`${c.name} ticked ${n} times.`)
);
So let's look at the implementation from a TypeScript perspective. (Do you program NodeJs without typescript? Check this)
import { SimpleEventDispatcher } from "ste-simple-events";
class Clock {
private _onSequenceTick = new SimpleEventDispatcher<number>();
private _ticks: number = 0;
constructor(public name: string, timeout: number) {
setInterval(() => {
this._ticks += 1;
this._onSequenceTick.dispatch(this._ticks);
}, timeout);
}
public get onSequenceTick() {
return this._onSequenceTick.asEvent();
}
}
Check the documentation or the examples for more information.
Need more info? Check the repo.
This project is maintained by Kees C. Bakker.
FAQs
Add the power of Simple Events to your projects. Every event has an argument with its data.
The npm package ste-simple-events receives a total of 10,277 weekly downloads. As such, ste-simple-events popularity was classified as popular.
We found that ste-simple-events 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.