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.
Comlink Alternative
import { expose } from 'microlink';
expose({
run: (func, args) => func(...args),
halve: n => n / 2,
});
import { wrap } from 'microlink';
// or, import wrap from 'microlink/wrap';
const worker = new Worker("worker.js");
const obj = await wrap(worker);
await obj.halve(10);
5
const count_elements = selector => document.querySelectorAll(selector).length;
await obj.run(count_elements, 'div');
import { expose } from "microlink";
expose(methods, {
batch_size: 10, // how many requests per batch should be sent up to the main thread
batch_wait: 100, // wait up to 100ms for batch to be filled before sent
})
// pass an options object to expose or wrap
const options = { debug_level: 10 };
expose(methods, options);
wrap(worker, options)
FAQs
Comlink Alternative. Built with JSON-RPC.
The npm package microlink receives a total of 235 weekly downloads. As such, microlink popularity was classified as not popular.
We found that microlink demonstrated a healthy version release cadence and project activity because the last version was released less than 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.