MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / k

Function k

src/cli/viewport.ts:80–80  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

78 const filled = Math.min(barWidth, Math.round((pct / 100) * barWidth));
79 const bar = '█'.repeat(filled) + '░'.repeat(barWidth - filled);
80 const k = (n: number) => (n >= 1000 ? `${(n / 1000).toFixed(n >= 10000 ? 0 : 1)}k` : String(n));
81 return `${k(used)}/${k(window)} ${bar} ${pct}%`;
82}

Callers 1

formatContextMeterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected