lib/simplemenu.js
function _printItem (item) {
  switch(item.type) {
    case 'option':
      console.log(item.index + ': ' + item.label);
      break;
    case 'break':
      for (var breakString = ''; breakString.length < item.charCount;) {
        breakString += item.character;
      }

      console.log(breakString);
      break;
    case 'text':
      console.log(item.text);
      break;
    default:
      console.error('Invalid item type: ' + item.type);
      process.exit();
  }
}
function _printItem (item) {
  switch(item.type) {
    case 'option':
      console.log(item.index + ': ' + item.label);
      break;
    case 'break':
      for (var breakString = ''; breakString.length < item.charCount;) {
        breakString += item.character;
      }

      console.log(breakString);
      break;
    case 'text':
      console.log(item.text);
      break;
    default:
      console.error('Invalid item type: ' + item.type);
      process.exit();
  }
}
function _printItem ( item ) { switch ( item . type ) { case 'option' : console . log ( item . index + ': ' + item . label ) ; break ; case 'break' : for ( var breakString = '' ; breakString . length < item . charCount ; ) { breakString += item . character ; } console . log ( breakString ) ; break ; case 'text' : console . log ( item . text ) ; break ; default : console . error ( 'Invalid item type: ' + item . type ) ; process . exit ( ) ; } }
Utility function to print out an item in the array.

@param  {Object} item An item in the array.
Utility function to print out an item in the array .