FindExecutableOptions
Defined in: find-executable.ts:6
Options for findExecutable and findExecutableSync.
Properties
Section titled “Properties”
optionalpath?:string
Defined in: find-executable.ts:13
Directories to search, delimited the way PATH is on platform (: on
POSIX, ; on Windows). Defaults to process.env.PATH. Empty entries are
skipped rather than read as the working directory; relative ones are
resolved against the working directory when the call starts.
pathExt?
Section titled “pathExt?”
optionalpathExt?:string
Defined in: find-executable.ts:20
Windows only: the extensions that make a file runnable, delimited with
;. Defaults to process.env.PATHEXT, else .COM;.EXE;.BAT;.CMD. Each
must be a bare extension — one with a path separator throws a TypeError,
since it would otherwise reach outside the searched directory.
platform?
Section titled “platform?”
optionalplatform?:Platform
Defined in: find-executable.ts:22
Defaults to process.platform. Windows has no exec bit, so only the extension decides.