Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

.keyinselect

const readLineSync = require('readline-sync'),
  items = ['option 1', 'option 2', 'option 3'],
  index = readLineSync.keyInSelect(items);
console.log('you chose ' + items[index]);
Source by github.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+5 =