
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.
The cross-platform and super-fast library which can check if a command or even the commands bundle exist.
cmdexistThe cross-platform and super-fast library which can check if a command or even the commands bundle exist.
It should be compatible with Node v10+.
npm i cmdexist
yarn add cmdexist # or if you use yarn
/* SINGLE FILE TO TEST */
function singleFileToTest() {
CheckIfExist("node").then((exec) => console.log(`node is ${exec}`));
}
/* MULTIPLE FILES TO TEST */
async function multipleFilesToTest() {
// Set as `const` so TypeScript will correctly show the entries in toCheck array.
const toCheck = ["npm", "node", "yarn", "python", "docker"] as const;
const [result, details] = await CheckIfAllExist(toCheck);
details; // We can see that it shows the every entries in `toCheck`.
console.log(result);
console.log(details);
}
For more information, See the docs and examples/ folder.
See benchmarks/command-exists.ts.
commandExists - when the exe exists: 12.467ms
commandExists - when the exe not exists: 6.156ms
[our] cmdexist - when the exe exists: 0.92ms
[our] cmdexist - when the exe not exists: 0.301ms
FAQs
The cross-platform and super-fast library which can check if a command or even the commands bundle exist.
The npm package cmdexist receives a total of 8 weekly downloads. As such, cmdexist popularity was classified as not popular.
We found that cmdexist 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.