ResolveNodeOpts
Defined in: src/node-bin.ts:3
Properties
Section titled “Properties”exists?
Section titled “exists?”
optionalexists?: (p) =>boolean
Defined in: src/node-bin.ts:9
Existence probe; defaults to fs.existsSync. Injectable for tests.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
optionalhome?:string
Defined in: src/node-bin.ts:11
Home dir; defaults to $HOME. Injectable for tests.
override?
Section titled “override?”
optionaloverride?:string|null
Defined in: src/node-bin.ts:5
Explicit override (SHEPHERD_NODE_BIN); wins over everything when non-empty.
which?
Section titled “which?”
optionalwhich?: (cmd) =>string|null
Defined in: src/node-bin.ts:7
PATH lookup; defaults to Bun.which. Injectable for tests.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null