Interactive password prompt component for Node.js CLI applications
Inquirer password prompt
inquirer$ node -e "const { password } = require('@inquirer/password'); password({ message: 'Enter password:' }).then(pwd => console.log('Got:', pwd));"$ const pwd = await password({ message: 'Database password:', mask: '*' });$ const pwd = await password({ message: 'New password:', validate: (val) => val.length >= 8 || 'Min 8 chars' });