Skip to content

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.

string

Executable name.

HasBinaryOptions

Promise<boolean>

true unless the command cannot be found.

If the platform resolver itself (which/where) is not available on this system.