MCPcopy Index your code
hub / github.com/cobusgreyling/loop-engineering / formatTokenCap

Function formatTokenCap

tools/loop-init/src/cli.ts:187–191  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

185}
186
187function formatTokenCap(n: number): string {
188 if (n >= 1_000_000) return `${n / 1_000_000}M`;
189 if (n >= 1_000) return `${n / 1_000}k`;
190 return String(n);
191}
192
193function buildLoopBudgetMd(pattern: Pattern): string {
194 const b = PATTERN_BUDGET[pattern];

Callers 1

buildLoopBudgetMdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected