Skip to content

Type Aliases

WhichOptions

type WhichOptions = object

Defined in: index.ts:65

Type declaration

all?
optional all: boolean;
delimiter?
optional delimiter: string;
nothrow?
optional nothrow: boolean;
path?
optional path: string;
pathExt?
optional pathExt: string;

WhichOptionsFindAll

type WhichOptionsFindAll = WhichOptions & object

Defined in: index.ts:73

Type declaration

all
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

all?
optional 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

nothrow
nothrow: true

WhichOptionsThrow

type WhichOptionsThrow = WhichOptions & object

Defined in: index.ts:77

Type declaration

nothrow?
optional nothrow: false;

Functions

which()

Call Signature

function which(cmd): Promise<string>

Defined in: index.ts:89

Parameters
cmd

string

Returns

Promise<string>

Call Signature

function which(cmd, opt): Promise<null | string[]>

Defined in: index.ts:90

Parameters
cmd

string

opt

WhichOptionsFindAllNoThrow

Returns

Promise<null | string[]>

Call Signature

function which(cmd, opt): Promise<null | string>

Defined in: index.ts:94

Parameters
cmd

string

opt

WhichOptionsFindOneNoThrow

Returns

Promise<null | string>

Call Signature

function which(cmd, opt): Promise<string[]>

Defined in: index.ts:98

Parameters
cmd

string

opt

WhichOptionsFindAllThrow

Returns

Promise<string[]>

Call Signature

function which(cmd, opt): Promise<string>

Defined in: index.ts:102

Parameters
cmd

string

opt

WhichOptionsFindOneThrow

Returns

Promise<string>

Call Signature

function which(cmd, opt): Promise<null | string>

Defined in: index.ts:106

Parameters
cmd

string

opt

WhichOptionsFindOne

Returns

Promise<null | string>

Call Signature

function which(cmd, opt): Promise<null | string | string[]>

Defined in: index.ts:110

Parameters
cmd

string

opt

WhichOptionsNoThrow

Returns

Promise<null | string | string[]>

Call Signature

function which(cmd, opt): Promise<null | string[]>

Defined in: index.ts:114

Parameters
cmd

string

opt

WhichOptionsFindAll

Returns

Promise<null | string[]>

Call Signature

function which(cmd, opt): Promise<null | string | string[]>

Defined in: index.ts:118

Parameters
cmd

string

opt

WhichOptions

Returns

Promise<null | string | string[]>


whichSync()

Call Signature

function whichSync(cmd): string

Defined in: index.ts:155

Parameters
cmd

string

Returns

string

Call Signature

function whichSync(cmd, opt): null | string[]

Defined in: index.ts:156

Parameters
cmd

string

opt

WhichOptionsFindAllNoThrow

Returns

null | string[]

Call Signature

function whichSync(cmd, opt): null | string

Defined in: index.ts:160

Parameters
cmd

string

opt

WhichOptionsFindOneNoThrow

Returns

null | string

Call Signature

function whichSync(cmd, opt): string[]

Defined in: index.ts:164

Parameters
cmd

string

opt

WhichOptionsFindAllThrow

Returns

string[]

Call Signature

function whichSync(cmd, opt): string

Defined in: index.ts:168

Parameters
cmd

string

opt

WhichOptionsFindOneThrow

Returns

string

Call Signature

function whichSync(cmd, opt): null | string

Defined in: index.ts:172

Parameters
cmd

string

opt

WhichOptionsFindOne

Returns

null | string

Call Signature

function whichSync(cmd, opt): null | string | string[]

Defined in: index.ts:176

Parameters
cmd

string

opt

WhichOptionsNoThrow

Returns

null | string | string[]

Call Signature

function whichSync(cmd, opt): null | string[]

Defined in: index.ts:180

Parameters
cmd

string

opt

WhichOptionsFindAll

Returns

null | string[]

Call Signature

function whichSync(cmd, opt?): null | string | string[]

Defined in: index.ts:184

Parameters
cmd

string

opt?

WhichOptions

Returns

null | string | string[]