
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.
cross-start
Advanced tools
Run different npm start commands per platform.
Do you need to start a .bat script on windows in order to launch your application? And on linux, you need to start a bash-script? Then just let cross-start handle to call the correct startup command, and you can continue to use the simple npm start command to launch your application.
Install this module via
npm install --save-dev cross-start
or
yarn add cross-start --dev
if you use yarn.
Replace your default start command with cross-start:
{
"scripts": {
"start": "cross-start"
}
}
Next, add a start command for each platform you wish to run your project on:
{
"scripts": {
"start": "cross-start",
"start:win32": "cmd my\\startup\\script.bat",
"start:linux": "bash my/startup/script.sh"
}
}
Your script name must starts with start: and ends with one of the supported platforms by node.js.
List of valid task names:
start:aixstart:darwinstart:freebsdstart:linuxstart:openbsdstart:sunosstart:win32FAQs
Allows you to define different npm start commands per OS
We found that cross-start 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.