Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
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
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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.