UNPKG

cli-select-2

Version:

Simple and interactive solution to provide a list of selectable items on the command line

11 lines (8 loc) 211 B
const cliSelect = require('./dist/index.js') const run = async () => { const selected = await cliSelect({ values: ['a', 'b', 'c'], }) if (selected) console.log(selected) } run().catch(console.error)