command-exists icon indicating copy to clipboard operation
command-exists copied to clipboard

node module to check if a command-line command exists

Results 17 command-exists issues
Sort by recently updated
recently updated
newest added

aims to fix https://github.com/mathisonian/command-exists/issues/35

I have `cookiecutter` installed on Windows 11, WSL2, ubuntu distro. Also have it in the $PATH. However `commandExists('cookiecutter')` check does not return true, but thows error. Is it supposed to...

Hi there... I'm trying your module.. But it throws false positives when testing for a command with the same name as a folder at the testing location... For example.. ```bash...

I'm consuming command-exists as follows (only relevant code included): ```typescript import commandExists from 'command-exists'; import { promisify } from 'util'; const doesCommandExist = promisify(commandExists); const configure = async () =>...

**Issue**: We detected vulnerable dependencies in your project by using the command “npm audit”: #### npm audit report debug

I realise this project is probably not getting much attention at the moment which is totally fine & understandable. I just wanted to suggest that it might benefit from taking...

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

The module is failing to determine 'cd' (without parameters) as a command in windows. ``` var commandExistsSync = require('command-exists').sync; var cmd = 'cd'; console.log("Check for cd : "+ commandExistsSync(cmd)); ```...

I'd like to be able to do this in a package.json script: command-exists XYZ || 'echo installing command XYZ' Can this be done?

Unless there was an error with checking if the command exists. It would make more sense and be more idiomatic to have a resolve(true/false) rather than rejecting in the case...