Options
All
  • Public
  • Public/Protected
  • All
Menu

cmdexist

Index

Type aliases

Functions

Type aliases

ExeList

ExeList<List>: Record<List[number], boolean>

The test result of the executable files list.

Type parameters

  • List: readonly string[]

Functions

CheckIfAllExist

  • CheckIfAllExist<T>(exeNames: T): Promise<[boolean, ExeList<T>]>
  • Check if all the executable files in exeNames are in the PATH.

    Type parameters

    • T: readonly string[]

    Parameters

    • exeNames: T

      The list of the executable filename.

    Returns Promise<[boolean, ExeList<T>]>

    • First Entry: If all of them existed, returns true; otherwise, returns false.
    • Second Entry: The details test result of every executable files.

CheckIfExist

  • CheckIfExist(exeName: string): Promise<boolean>
  • Check if the executable file (exeName) is in the PATH.

    Parameters

    • exeName: string

      The name of the executable file.

    Returns Promise<boolean>

    If it existed, returns true; otherwise, returns false.

Generated using TypeDoc