Modules | @vltpkg/which
Type Aliases
WhichOptions
Type declaration
all?
delimiter?
nothrow?
path?
pathExt?
Defined in
index.ts:65
WhichOptionsFindAll
Type declaration
all
Defined in
index.ts:73
WhichOptionsFindAllNoThrow
Defined in
index.ts:84
WhichOptionsFindAllThrow
Defined in
index.ts:86
WhichOptionsFindOne
Type declaration
all?
Defined in
index.ts:74
WhichOptionsFindOneNoThrow
Defined in
index.ts:81
WhichOptionsFindOneThrow
Defined in
index.ts:79
WhichOptionsNoThrow
Type declaration
nothrow
Defined in
index.ts:76
WhichOptionsThrow
Type declaration
nothrow?
Defined in
index.ts:77
Functions
which()
which(cmd)
Parameters
• cmd: string
Returns
Promise
<string
>
Defined in
index.ts:89
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAllNoThrow
Returns
Promise
<string
[] | null
>
Defined in
index.ts:90
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOneNoThrow
Returns
Promise
<string
| null
>
Defined in
index.ts:94
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAllThrow
Returns
Promise
<string
[]>
Defined in
index.ts:98
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOneThrow
Returns
Promise
<string
>
Defined in
index.ts:102
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOne
Returns
Promise
<string
| null
>
Defined in
index.ts:106
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsNoThrow
Returns
Promise
<string
[] | string
| null
>
Defined in
index.ts:110
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAll
Returns
Promise
<string
[] | null
>
Defined in
index.ts:114
which(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptions
Returns
Promise
<string
[] | string
| null
>
Defined in
index.ts:118
whichSync()
whichSync(cmd)
Parameters
• cmd: string
Returns
string
Defined in
index.ts:155
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAllNoThrow
Returns
string
[] | null
Defined in
index.ts:156
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOneNoThrow
Returns
string
| null
Defined in
index.ts:160
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAllThrow
Returns
string
[]
Defined in
index.ts:164
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOneThrow
Returns
string
Defined in
index.ts:168
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindOne
Returns
string
| null
Defined in
index.ts:172
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsNoThrow
Returns
string
[] | string
| null
Defined in
index.ts:176
whichSync(cmd, opt)
Parameters
• cmd: string
• opt: WhichOptionsFindAll
Returns
string
[] | null
Defined in
index.ts:180
whichSync(cmd, opt)
Parameters
• cmd: string
• opt?: WhichOptions
Returns
string
[] | string
| null
Defined in
index.ts:184