Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
emit-listenner
Advanced tools
emit-listenner is a slim EventEmitter implementation.
NOTE: Please ensure your nodejs version is great than 12.17!
npm install --save emit-listenner
import emitListenner from 'emit-listenner'
const event = new emitListenner.EventEmitter()
event.addListenner("eventname", callback); // register a listenner
event.emit("eventname", {
a: 'some args'
}); // emit event
Register a listenner for certain specified event, when event trigged them will be called orderly.
Register multiple events at once. the events
is an array of structure like below:
{
name: string; // event name
handler: args=>any; // it will be called when event is triggered
once?: boolean; // same as `EventEmitter#once`, default false
}
Alias of EventEmitter#addListenner
Register a listenner for certain specified event, but just only effects one time.
Note: Register a same event continuously for the same time, and the latter will overwrite the former
Remove specified listenner for the specified event, but will remove all listenners of name
event when handler is not set.
Remove all registered events and its listenners.
Get count of listenners of specified event.
Emit a event with optional arguments.
alias of EventEmitter#emit
.
MIT.
FAQs
slim EventEmitter implementation
We found that emit-listenner 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.