https://github.com/shovon/sync-prompt
npm install -g sync-prompt
var prompt = require('sync-prompt').prompt; var name = prompt('What is your name? '); // User enters "Mike". console.log('Hello, ' + name + '!'); // -> Hello, Mike! var password = prompt.hidden('Password: '); // User enters a password, but nothing will be written to the screen.