• A function that can be used to prompt the user for a password in the terminal. The input will be hidden as the user type (i.e., the input will be TTY).

    Parameters

    • Optional prompt: string

      An optional text message to show as prompt for the user's input.

    Returns Promise<string>

    A Promise that resolves to a string containing the user's input.

    Note

    This function uses the read package internally.

Generated using TypeDoc