.keyinselect code example
Example 1: .keyinselect
const readLineSync = require('readline-sync'),
items = ['option 1', 'option 2', 'option 3'],
index = readLineSync.keyInSelect(items);
console.log('you chose ' + items[index]);
Example 2: .keyinselect
console.log('you chose ' + index);