
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
cross-npm-spawn
Advanced tools
Cross-platform NPM spawn
npm install cross-npm-spawn
spawnNpm(command, npmArgs, spawnArgs)
command
: The npm command (e.g. 'install'
).npmArgs
: An object parsed by dargs
.spawnArgs
: The spawn options object or just the working directory where to run the command.{
code: Integer, // Return code of the NPM command. 0 if success, 1 if an error occured
stdout: String, // stdout of the NPM command
stderr: String // stderr of the NPM command
}
const spawnNpm = require('cross-npm-spawn');
// Will execute the "npm show express version" command
const promise = spawnNpm('show', {_: ['express', 'version']}).then((result) => {
console.log('Return code : ', result.code);
console.log('Stdout : ', result.stdout);
console.log('Stderr : ', result.stderr);
}).catch((reason) => {
console.log('An error occured while executing the NPM command.', reason);
});
FAQs
Cross-platform NPM spawn
The npm package cross-npm-spawn receives a total of 13 weekly downloads. As such, cross-npm-spawn popularity was classified as not popular.
We found that cross-npm-spawn 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.