src/stats.js
function selectFormat(format) {
  let method = "toTable";
  let extension = `.${format}`;

  switch (format) {
    case "json":
      method = "toJSON";
      break;
    case "csv":
      method = "toCSV";
      break;
    case "html":
      method = "toHTML";
      break;
    case "md":
      method = "toMarkdown";
      break;
    default:
      break;
  }

  return {
    extension: extension,
    method: method
  }
}
function selectFormat(format) {
  let method = "toTable";
  let extension = `.${format}`;

  switch (format) {
    case "json":
      method = "toJSON";
      break;
    case "csv":
      method = "toCSV";
      break;
    case "html":
      method = "toHTML";
      break;
    case "md":
      method = "toMarkdown";
      break;
    default:
      break;
  }

  return {
    extension: extension,
    method: method
  }
}
function selectFormat ( format ) { let method = "toTable" ; let extension = ` ${ format } ` ; switch ( format ) { case "json" : method = "toJSON" ; break ; case "csv" : method = "toCSV" ; break ; case "html" : method = "toHTML" ; break ; case "md" : method = "toMarkdown" ; break ; default : break ; } return { extension : extension , method : method } }
Select CSS statistics data format
@param {String} format
@returns {{extension: String, method: String}}
@private
Select CSS statistics data format