@inquirer/select

Interactive select/list prompt for Node.js CLI applications

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Inquirer select/list prompt

Commands

inquirer-select

Examples

Create an interactive selection prompt in a Node.js script$ node -e "const { select } = require('@inquirer/select'); select({ message: 'Choose an option', choices: ['Option 1', 'Option 2', 'Option 3'] }).then(console.log);"
Use select prompt with custom message and default value$ node -e "const { select } = require('@inquirer/select'); select({ message: 'Pick a language', choices: ['JavaScript', 'Python', 'Go'], default: 'JavaScript' }).then(console.log);"
Integrate select in an interactive CLI menu$ node script.js