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.
A client and server side library for routing events.
I was disgusted by the size of MiniEE (122 sloc, 4.4kb), so I decided a rewrite was in order.
This time, without the support for regular expressions - but still with the support for "when", which is my favorite addition to EventEmitters.
MicroEE is a more satisfying (42 sloc, ~1100 characters), and passes the same tests as MiniEE (excluding the RegExp support, but including slightly tricky ones like removing callbacks set via once() using removeListener where function equality checks are a bit tricky).
npm install microee
Use the version in ./dist/
. It exports a single global, microee
.
To run the in-browser tests, open ./test/index.html
in the browser after cloning this repo and doing npm install (to get Mocha).
var MicroEE = require('microee');
var MyClass = function() {};
MicroEE.mixin(MyClass);
var obj = new MyClass();
// set string callback
obj.on('event', function(arg1, arg2) { console.log(arg1, arg2); });
obj.emit('event', 'aaa', 'bbb'); // trigger callback
this
: on(), emit(), once(), when()http://nodejs.org/api/events.html
FAQs
A tiny EventEmitter-like client and server side library
The npm package microee receives a total of 20,214 weekly downloads. As such, microee popularity was classified as popular.
We found that microee 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.