zx
zx copied to clipboard
Feature request: hiding user input
Hi!
The problem
When prompting a user for a sensitive piece of data you would not want that piece of data showing up in the terminal. In bash, you would do read -s PASSWORD.
Currently, the question() function does not support such a thing.
Proposed Solution
Give the option to hide the user input in the second argument (option object) of the question function.
await question($`Enter password:`, {
hideInput: true,
}),
Any thoughts on this idea? I can propose a PR if this is functionality you'd like.
I think this PR #526 addresses this.
Thank you!
Hmm could be me but this does not look completed? @antonmedv
Looks like not_)