Function searchPrompt

  • Start a command-line prompt in which the user can search a provided list.

    Parameters

    • data: string[]

      The list to search

    • Optional options: ISearchPromptOptions

      options

    • Optional listeners: Options

    Returns Promise<ISearchPromptResult>

    the user input, its resulting matches, the match selected by the user

    Remarks

    Returns 1 100% matches always from beginning of searched strings/words 2 100% matches anywhere in the searched strings/words

    If the first category can be narrowed down to exactly one result, then it is immediately returned and the other category discarded.

Generated using TypeDoc