Skip to content

Modules | @vltpkg/which

Type Aliases

WhichOptions

type WhichOptions: object;

Type declaration

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

Defined in

index.ts:65


WhichOptionsFindAll

type WhichOptionsFindAll: WhichOptions & object;

Type declaration

all
all: true

Defined in

index.ts:73


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;

Type declaration

all?
optional all: false;

Defined in

index.ts:74


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;

Type declaration

nothrow
nothrow: true

Defined in

index.ts:76


WhichOptionsThrow

type WhichOptionsThrow: WhichOptions & object;

Type declaration

nothrow?
optional nothrow: false;

Defined in

index.ts:77

Functions

which()

which(cmd)

function which(cmd): Promise<string>
Parameters

cmd: string

Returns

Promise<string>

Defined in

index.ts:89

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindAllNoThrow

Returns

Promise<string[] | null>

Defined in

index.ts:90

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindOneNoThrow

Returns

Promise<string | null>

Defined in

index.ts:94

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindAllThrow

Returns

Promise<string[]>

Defined in

index.ts:98

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindOneThrow

Returns

Promise<string>

Defined in

index.ts:102

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindOne

Returns

Promise<string | null>

Defined in

index.ts:106

which(cmd, opt)

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

cmd: string

opt: WhichOptionsNoThrow

Returns

Promise<string[] | string | null>

Defined in

index.ts:110

which(cmd, opt)

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

cmd: string

opt: WhichOptionsFindAll

Returns

Promise<string[] | null>

Defined in

index.ts:114

which(cmd, opt)

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

cmd: string

opt: WhichOptions

Returns

Promise<string[] | string | null>

Defined in

index.ts:118


whichSync()

whichSync(cmd)

function whichSync(cmd): string
Parameters

cmd: string

Returns

string

Defined in

index.ts:155

whichSync(cmd, opt)

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

cmd: string

opt: WhichOptionsFindAllNoThrow

Returns

string[] | null

Defined in

index.ts:156

whichSync(cmd, opt)

function whichSync(cmd, opt): string | null
Parameters

cmd: string

opt: WhichOptionsFindOneNoThrow

Returns

string | null

Defined in

index.ts:160

whichSync(cmd, opt)

function whichSync(cmd, opt): string[]
Parameters

cmd: string

opt: WhichOptionsFindAllThrow

Returns

string[]

Defined in

index.ts:164

whichSync(cmd, opt)

function whichSync(cmd, opt): string
Parameters

cmd: string

opt: WhichOptionsFindOneThrow

Returns

string

Defined in

index.ts:168

whichSync(cmd, opt)

function whichSync(cmd, opt): string | null
Parameters

cmd: string

opt: WhichOptionsFindOne

Returns

string | null

Defined in

index.ts:172

whichSync(cmd, opt)

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

cmd: string

opt: WhichOptionsNoThrow

Returns

string[] | string | null

Defined in

index.ts:176

whichSync(cmd, opt)

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

cmd: string

opt: WhichOptionsFindAll

Returns

string[] | null

Defined in

index.ts:180

whichSync(cmd, opt)

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

cmd: string

opt?: WhichOptions

Returns

string[] | string | null

Defined in

index.ts:184