hasBinary
hasBinary(
command,options?):Promise<boolean>
Defined in: packages/app-system/src/process/has-binary.ts:29
Check whether a binary is available on PATH.
Delegates to the platform’s own resolver (which on POSIX, where on
Windows) instead of re-implementing PATH/PATHEXT lookup.
Parameters
Section titled “Parameters”command
Section titled “command”string
Executable name.
options?
Section titled “options?”Returns
Section titled “Returns”Promise<boolean>
true unless the command cannot be found.
Throws
Section titled “Throws”If the platform resolver itself (which/where) is not
available on this system.