MCPcopy
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
72export function formatNumber(n: number): string {
73 return n.toLocaleString('en-US');
74}
75
76export function formatCost(n: number): string {
77 return `$${n.toFixed(2)}`;

Callers 2

format.test.tsFile · 0.90
registerConfigCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected