MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / formatBytes

Function formatBytes

apps/web/src/components/usage-analytics/format.ts:34–36  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

32}
33
34export function formatBytes(n: number): string {
35 return formatLargeNumber(n);
36}
37
38export function formatPercentage(ratio: number, fractionDigits = 1): string {
39 return `${(ratio * 100).toFixed(fractionDigits)}%`;

Callers

nothing calls this directly

Calls 1

formatLargeNumberFunction · 0.90

Tested by

no test coverage detected