
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
simple-nodejs-threader
Advanced tools
A basic package for multithreading (multiple processes) in NodeJs
To simplify node
build processes, used for better development experience or to spead up build pipelines, by utilizing node's multicore processing.
yarn add -D simple-nodejs-threader
npm install simple-nodejs-threader --save-dev
const manager = new ProcessManager("My task name");
const backendProcess = ProcessManager.promiseSpawn(
"yarn start:backend",
[processFlags],
{
stdio: "inherit",
shell: true,
}
);
const frontendProcess = ProcessManager.promiseSpawn(
"yarn start:frontend",
[processFlags],
{
stdio: "inherit",
shell: true,
}
);
manager.queue(frontendProcess, backendProcess);
await manager.complete();
Convert an object into Node friendly process flags.
Record<string, string>
]const processFlags = addFlags({ argOne: "hello", argTwo: "world" });
processFlags; // [--hello, --world]
FAQs
A simple collection of multi-threading helpers for NodeJs
The npm package simple-nodejs-threader receives a total of 107 weekly downloads. As such, simple-nodejs-threader popularity was classified as not popular.
We found that simple-nodejs-threader 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.