Skip to content

FindExecutableOptions

Defined in: find-executable.ts:6

Options for findExecutable and findExecutableSync.

optional path?: 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.


optional pathExt?: 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.


optional platform?: Platform

Defined in: find-executable.ts:22

Defaults to process.platform. Windows has no exec bit, so only the extension decides.