MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / formatRow

Function formatRow

apps/api/scripts/lint-meta/generate-rules-md.ts:82–83  ·  view source on GitHub ↗
(cells: readonly string[])

Source from the content-addressed store, hash-verified

80 );
81
82 const formatRow = (cells: readonly string[]): string =>
83 `| ${cells.map((cell, columnIndex) => cell.padEnd(widths[columnIndex] ?? cell.length)).join(" | ")} |`;
84
85 const separator = `| ${widths.map((width) => "-".repeat(width)).join(" | ")} |`;
86

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected