MCPcopy Create free account
hub / github.com/angular/dev-infra / fill

Function fill

ng-dev/pullapprove/logging.ts:46–46  ·  view source on GitHub ↗
(count: number, content: string)

Source from the content-addressed store, hash-verified

44 const leftSpace = Math.ceil((fillWidth - headerText.length) / 2);
45 const rightSpace = fillWidth - leftSpace - headerText.length;
46 const fill = (count: number, content: string) => content.repeat(count);
47
48 Log.info(`┌${fill(fillWidth, '─')}┐`);
49 Log.info(`│${fill(leftSpace, ' ')}${headerText}${fill(rightSpace, ' ')}│`);

Callers 1

logHeaderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected