Reference
Type Aliases
WhichOptions
type WhichOptions = object;Defined in: index.ts:65
Type declaration
| Name | Type |
|---|---|
all? | boolean |
delimiter? | string |
nothrow? | boolean |
path? | string |
pathExt? | string |
WhichOptionsFindAll
type WhichOptionsFindAll = WhichOptions & object;Defined in: index.ts:73
Type declaration
| Name | Type |
|---|---|
all | true |
WhichOptionsFindAllNoThrow
type WhichOptionsFindAllNoThrow = WhichOptionsFindAll & WhichOptionsNoThrow;Defined in: index.ts:84
WhichOptionsFindAllThrow
type WhichOptionsFindAllThrow = WhichOptionsFindAll & WhichOptionsThrow;Defined in: index.ts:86
WhichOptionsFindOne
type WhichOptionsFindOne = WhichOptions & object;Defined in: index.ts:74
Type declaration
| Name | Type |
|---|---|
all? | false |
WhichOptionsFindOneNoThrow
type WhichOptionsFindOneNoThrow = WhichOptionsFindOne & WhichOptionsNoThrow;Defined in: index.ts:81
WhichOptionsFindOneThrow
type WhichOptionsFindOneThrow = WhichOptionsFindOne & WhichOptionsThrow;Defined in: index.ts:79
WhichOptionsNoThrow
type WhichOptionsNoThrow = WhichOptions & object;Defined in: index.ts:76
Type declaration
| Name | Type |
|---|---|
nothrow | true |
WhichOptionsThrow
type WhichOptionsThrow = WhichOptions & object;Defined in: index.ts:77
Type declaration
| Name | Type |
|---|---|
nothrow? | false |
Functions
which()
Call Signature
function which(cmd): Promise<string>Defined in: index.ts:89
Parameters
| Parameter | Type |
|---|---|
cmd | string |
Returns
Promise<string>
Call Signature
function which(cmd, opt): Promise<null | string[]>Defined in: index.ts:90
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAllNoThrow |
Returns
Promise<null | string[]>
Call Signature
function which(cmd, opt): Promise<null | string>Defined in: index.ts:94
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOneNoThrow |
Returns
Promise<null | string>
Call Signature
function which(cmd, opt): Promise<string[]>Defined in: index.ts:98
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAllThrow |
Returns
Promise<string[]>
Call Signature
function which(cmd, opt): Promise<string>Defined in: index.ts:102
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOneThrow |
Returns
Promise<string>
Call Signature
function which(cmd, opt): Promise<null | string>Defined in: index.ts:106
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOne |
Returns
Promise<null | string>
Call Signature
function which(cmd, opt): Promise<null | string | string[]>Defined in: index.ts:110
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsNoThrow |
Returns
Promise<null | string | string[]>
Call Signature
function which(cmd, opt): Promise<null | string[]>Defined in: index.ts:114
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAll |
Returns
Promise<null | string[]>
Call Signature
function which(cmd, opt): Promise<null | string | string[]>Defined in: index.ts:118
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptions |
Returns
Promise<null | string | string[]>
whichSync()
Call Signature
function whichSync(cmd): stringDefined in: index.ts:155
Parameters
| Parameter | Type |
|---|---|
cmd | string |
Returns
string
Call Signature
function whichSync(cmd, opt): null | string[]Defined in: index.ts:156
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAllNoThrow |
Returns
null | string[]
Call Signature
function whichSync(cmd, opt): null | stringDefined in: index.ts:160
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOneNoThrow |
Returns
null | string
Call Signature
function whichSync(cmd, opt): string[]Defined in: index.ts:164
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAllThrow |
Returns
string[]
Call Signature
function whichSync(cmd, opt): stringDefined in: index.ts:168
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOneThrow |
Returns
string
Call Signature
function whichSync(cmd, opt): null | stringDefined in: index.ts:172
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindOne |
Returns
null | string
Call Signature
function whichSync(cmd, opt): null | string | string[]Defined in: index.ts:176
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsNoThrow |
Returns
null | string | string[]
Call Signature
function whichSync(cmd, opt): null | string[]Defined in: index.ts:180
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt | WhichOptionsFindAll |
Returns
null | string[]
Call Signature
function whichSync(cmd, opt?): null | string | string[]Defined in: index.ts:184
Parameters
| Parameter | Type |
|---|---|
cmd | string |
opt? | WhichOptions |
Returns
null | string | string[]