node_modules/snyk/dist/cli/139.index.js
/**
 * Function for rendering checkbox choices
 * @param  {String} pointer Selected key
 * @return {String}         Rendered content
 */
Function for rendering checkbox choices
@param  {String} pointer Selected key
@return {String}         Rendered content
Function for rendering checkbox choices @param { String } pointer Selected key @return { String } Rendered content
function renderChoices(choices, pointer) {
  var output = '';
  choices.forEach((choice) => {
    output += '\n  ';
    if (choice.type === 'separator') {
      output += ' ' + choice;
      return;
    }
    var choiceStr = choice.key + ') ' + choice.name;
    if (pointer === choice.key) {
      choiceStr = chalk.cyan(choiceStr);
    }
    output += choiceStr;
  });
  return output;
}
function renderChoices ( choices , pointer ) { var output = '' ; choices . forEach ( ( choice ) => { output += '\n  ' ; if ( choice . type === 'separator' ) { output += ' ' + choice ; return ; } var choiceStr = choice . key + ') ' + choice . name ; if ( pointer === choice . key ) { choiceStr = chalk . cyan ( choiceStr ) ; } output += choiceStr ; } ) ; return output ; }
Function for rendering checkbox choices
 @param  {String} pointer Selected key
 @return {String}         Rendered content
Function for rendering checkbox choices @param { String } pointer Selected key @return { String } Rendered content