
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
function-to-worker
Advanced tools
function-to-worker is a package designed for run any synchronous functions in web workers scope. It lets to make calculations
without blocking main js thread.
Package provide only one simple function which makes worker from passed function:
import createWorker from "function-to-worker";
const wantToCalculateItInWorker = number => number + 1;
const calculateInWorker = createWorker(wantToCalculateItInWorker);
function calculateInWorker from example above returns Promise which will resolved or rejected with value was returned by wantToCalculateItInWorker function. So, we can use it like this:
const addOneInWorker = async number => await calculateInWorker(number);
FAQs
This package can get function and wrap it in web worker
We found that function-to-worker 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.