
The password input only worked if stdin was a TTY. This was caused by the fact that the readline-sync library only worked for TTYs.
The password input only worked if stdin was a TTY. This was caused by the fact that the readline-sync library only worked for TTYs.