unjs / consola

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

Password prompt #285

Open nicogenz opened 7 months ago

nicogenz commented 7 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

robingenz commented 3 months ago

@pi0 Would you accept a PR? Or is there any way to prioritize this issue through sponsorship?