
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 88 weekly downloads. As such, microlink popularity was classified as not popular.
We found that microlink 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.