(result)
| 219 | console.log(`Input Size (gzip): ${bytes(data.gzipped.length)}\n`); |
| 220 | } |
| 221 | getRows(result) { |
| 222 | return result.items.map(item => |
| 223 | this.getColumns(item, result).map((col, i) => { |
| 224 | if (!i) return this.bold(col); |
| 225 | if (item.isMin) return this.green(col); |
| 226 | if (item.isMax) return this.red(col); |
| 227 | return col; |
| 228 | }) |
| 229 | ); |
| 230 | } |
| 231 | bold(col) { |
| 232 | return this.target === "MD" ? `**${col}**` : chalk.bold(col); |
| 233 | } |
no test coverage detected