Interactive expand prompt for Node.js CLI applications
Inquirer checkbox prompt
inquirer$ node -e "const { expand } = require('@inquirer/expand'); expand({ message: 'Conflict in file.txt:', choices: [{key: 'y', name: 'Overwrite'}, {key: 'n', name: 'Skip'}] }).then(answer => console.log(answer));"$ node -e "const { expand } = require('@inquirer/expand'); expand({ message: 'Select action:', choices: [{key: 'd', name: 'Delete'}, {key: 'e', name: 'Edit'}, {key: 'h', name: 'Help'}] }).then(console.log);"$ node script.js # where script uses @inquirer/expand for prompted file actions