index.js
function switchOutput(type, json) {
  if (type[0] === '.') type = type.slice(1);
  var result = '';

  switch (type) {
    case 'md':
      result = ''
        + '\n```json\n'
        + json
        + '\n```\n';
      break;
    case 'html':
      result = ''
        + '<div class="highlight highlight-json">\n'
        + '<pre><code>\n'
        + json
        + '</code></pre>'
        + '</div>';
      break;
    default: {
      result = json;
      break;
    }
  }
  return result;
}
function switchOutput(type, json) {
  if (type[0] === '.') type = type.slice(1);
  var result = '';

  switch (type) {
    case 'md':
      result = ''
        + '\n```json\n'
        + json
        + '\n```\n';
      break;
    case 'html':
      result = ''
        + '<div class="highlight highlight-json">\n'
        + '<pre><code>\n'
        + json
        + '</code></pre>'
        + '</div>';
      break;
    default: {
      result = json;
      break;
    }
  }
  return result;
}
function switchOutput ( type , json ) { if ( type [ 0 ] === '.' ) type = type . slice ( 1 ) ; var result = '' ; switch ( type ) { case 'md' : result = '' + '\n```json\n' + json + '\n```\n' ; break ; case 'html' : result = '' + '<div class="highlight highlight-json">\n' + '<pre><code>\n' + json + '</code></pre>' + '</div>' ; break ; default : { result = json ; break ; } } return result ; }
Generate output for the `_inspect` helper based on the
given `type`
Generate output for the _inspect helper based on the given type