MCPcopy
hub / github.com/prisma/prisma / maxLineLength

Function maxLineLength

packages/internals/src/utils/drawBox.ts:23–25  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

21}
22
23function maxLineLength(str: string): number {
24 return str.split('\n').reduce((max, curr) => Math.max(max, stringWidth(curr)), 0) + 2
25}
26
27export function drawBox({ title, width, height, str, horizontalPadding }: BoxOptions): string {
28 // This avoids having NaN later

Callers 1

drawBoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected