// npm i readline-sync
import readlineSync from 'readline-sync';
const text = readlineSync.question('enter text:');
const password = readlineSync.question('password:', {
hideEchoBack: true // The typed text on screen is hidden by `*` (default).
});