Interactive number input prompt for Node.js CLI applications.
Inquirer number prompt
$ const { createPrompt } = require('@inquirer/number'); const answer = await createPrompt({ message: 'Enter a number' });$ const answer = await createPrompt({ message: 'Pick a number between 1-100', min: 1, max: 100 });$ const answer = await createPrompt({ message: 'Enter quantity', default: 5 });$ const answer = await createPrompt({ message: 'What is your age?', min: 0, max: 150, validate: (val) => val > 18 });$ const width = await createPrompt({ message: 'Width in pixels' }); const height = await createPrompt({ message: 'Height in pixels' });