lib/report.js
function report(stream, metrics, thresholds) {
  const target = (!elv(thresholds)) ? -1 : thresholds.target;
  const dimensions = tableDimensions(metrics);
  const border = divider(dimensions);
  let value = header(dimensions);

  for (let i = 0; i < metrics.length; i++) {
    if (i > 0) value += border;
    const metric = metrics[i];
    value += row(metric, dimensions, i === target);
  }

  value += divider(dimensions, 'bottom');
  value += '\n';

  stream.write(value);
}
function report(stream, metrics, thresholds) {
  const target = (!elv(thresholds)) ? -1 : thresholds.target;
  const dimensions = tableDimensions(metrics);
  const border = divider(dimensions);
  let value = header(dimensions);

  for (let i = 0; i < metrics.length; i++) {
    if (i > 0) value += border;
    const metric = metrics[i];
    value += row(metric, dimensions, i === target);
  }

  value += divider(dimensions, 'bottom');
  value += '\n';

  stream.write(value);
}
function report ( stream , metrics , thresholds ) { const target = ( ! elv ( thresholds ) ) ? - 1 : thresholds . target ; const dimensions = tableDimensions ( metrics ) ; const border = divider ( dimensions ) ; let value = header ( dimensions ) ; for ( let i = 0 ; i < metrics . length ; i ++ ) { if ( i > 0 ) value += border ; const metric = metrics [ i ] ; value += row ( metric , dimensions , i === target ) ; } value += divider ( dimensions , 'bottom' ) ; value += '\n' ; stream . write ( value ) ; }
REPORTER  
Generates a report table.

@param {@link Stream} stream
@param {@link FunctionMetrics[]} metrics
@param {@link Thresholds} thresholds
REPORTER Generates a report table .