unjs / consola

🐨 Elegant Console Logger for Node.js and Browser
Other
5.78k stars 165 forks source link

Password prompt #285

Open nicogenz opened 3 months ago

nicogenz commented 3 months ago

Describe the feature

It would be nice to have the option for masked prompt input. I looked through the source code and it looks like you already have implemented such functionality, see https://github.com/unjs/consola/blob/24c98ceb90c269a170fd116134d91803a89f2c9d/src/utils/prompt.ts#L130 however its not used yet. The problem is, you can only specify the input as Select, Text, Confirm and Multiselect when calling consola.prompt.

Additional information