Function promptSecret
- prompt
Secret (message?, options?): string | null Parameters
- message: string = "Secret"
The prompt message to show to the user.
Optionaloptions: PromptSecretOptionsThe options for the prompt.
Returns string | null
The string that was entered or
nullif stdin is not a TTY.- message: string = "Secret"
Shows the given message and waits for the user's input. Returns the user's input as string. This is similar to
prompt()but it print user's input as*to prevent password from being shown. Use an emptymaskif you don't want to show any character.