Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lobehub/lobehub
/ formatNumber
Function
formatNumber
apps/cli/src/utils/format.ts:72–74 ·
view source on GitHub ↗
(n: number)
Source
from the content-addressed store, hash-verified
70
}
71
72
export
function
formatNumber(n: number): string {
73
return
n.toLocaleString(
'en-US'
);
74
}
75
76
export
function
formatCost(n: number): string {
77
return
`$${n.toFixed(2)}`;
Callers
2
format.test.ts
File · 0.90
registerConfigCommand
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected