MCPcopy Create free account
hub / github.com/babel/minify / getRows

Method getRows

scripts/benchmark.js:221–230  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

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 }

Callers 1

printMethod · 0.95

Calls 4

getColumnsMethod · 0.95
boldMethod · 0.95
greenMethod · 0.95
redMethod · 0.95

Tested by

no test coverage detected