Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Easily fork node process to run scripts concurrently
Sometimes you want to run multiple node processes at once. For example
tsc --project src
parcel src --out-dir build
onchange build --initial -- node build/start.js
There are several ways to solve this:
Make npm/yarn scripts and run them independently
Gulp
command1 & command2 & command3 & ...
SIGTERM
does not kill all processes.With easy-fork
, you can pass multiple CLI commands to run them concurrently, and now all you have to do is run the script.
$ npm install easy-fork
or
$ yarn add easy-fork
const fork = require('easy-fork');
fork('tsc --watch --project ./src/client');
fork('tsc --watch --project ./src/server');
fork('parcel serve ./src/client/index.html --out-dir ./build/client');
fork('tcm --watch --camelCase --pattern ./src/client/**/*.scss')
fork('onchange ./build/server --initial -- node ./build/server')
Type: string
Command to run. Must be locally installed node CLI.
MIT © Hoishin
FAQs
Easyly fork node process to run scripts concurrently
The npm package easy-fork receives a total of 5 weekly downloads. As such, easy-fork popularity was classified as not popular.
We found that easy-fork 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.