Skip to content

Repl.select() method

Home > streplts > Repl > select

Shows a dropdown list allowing the user to select an option using arrow keys.

Signature:

select(prompt: string, choices: string[]): Promise<string>;

Parameter

Type

Description

prompt

string

choices

string[]

Returns:

Promise<string>