Interactive command-line text input prompt for Node.js CLI apps.
Inquirer input text prompt
$ const { input } = require('@inquirer/input'); const answer = await input({ message: 'Enter your name:' });$ const { input } = require('@inquirer/input'); const pwd = await input({ message: 'Password:', mask: '*' });$ const { input } = require('@inquirer/input'); const email = await input({ message: 'Email:', validate: (val) => val.includes('@') || 'Invalid email' });$ const { input } = require('@inquirer/input'); const name = await input({ message: 'Your name:', default: 'Anonymous' });$ const { input } = require('@inquirer/input'); const username = await input({ message: 'Username:' }); const email = await input({ message: 'Email:' });