
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.
@triggi/native-exec
Advanced tools
Module that provides access to POSIX exec* functions.
This is a fork of https://github.com/OrKoN/native-exec Inspired by: https://github.com/jprichardson/node-kexec
requires a C++ compiler installed, most probably.
npm i @triggi/native-exec
Replace the current process with another one:
var exec = require('@triggi/native-exec');
exec('ls'); // => the process is replaced with ls, which runs and exits
Replace the current process with another one and replace process' env:
var exec = require('@triggi/native-exec');
exec('ls', {
newEnvKey: newEnvValue,
}); // => the process is replaced with ls -lsa, which runs and exits
Replace the current process with another one, replace process' env and provide arguments:
var exec = require('@triggi/native-exec');
exec('ls', {
newEnvKey: newEnvValue,
}, '-lsa'); // => the process is replaced with ls, which runs and exits
If you want to have a bootstrap script written in NodeJS you can use this module to replace the bootstrap process with the process that you actually intend to run specifying env and arguments.
MIT
FAQs
Module that provides access to POSIX exec* functions
We found that @triggi/native-exec 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.