MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / formatCount

Function formatCount

packages/web/src/features/chat/mcp/utils.ts:26–31  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

24
25// @techdebt : duplicated in ee and non-ee
26export function formatCount(count: number) {
27 if (count >= 10_000) {
28 return compactNumberFormatter.format(count);
29 }
30 return standardNumberFormatter.format(count);
31}
32
33// @techdebt : duplicated in ee and non-ee
34export function formatUsageSharePercent(percent: number) {

Callers 3

PermissionCountFunction · 0.90
ToolRowFunction · 0.90
McpToolPermissionsPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected