MCPcopy Create free account
hub / github.com/WebMCP-org/chrome-devtools-quickstart / header

Function header

benchmark/helpers.ts:602–615  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

600
601export const cli = {
602 header(title: string): void {
603 const lines = title.split("\n");
604 const maxLen = Math.max(...lines.map((l) => l.length), 58);
605 const border = "─".repeat(maxLen + 2);
606
607 console.log();
608 console.log(chalk.cyan(`┌${border}┐`));
609 for (const line of lines) {
610 const padded = line.padEnd(maxLen);
611 console.log(chalk.cyan("│ ") + chalk.bold.white(padded) + chalk.cyan(" │"));
612 }
613 console.log(chalk.cyan(`└${border}┘`));
614 console.log();
615 },
616
617 section(title: string): void {
618 console.log();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected