MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / formatCompactInteger

Function formatCompactInteger

src/core/bridge_coordinator.ts:21367–21369  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

21365}
21366
21367function formatCompactInteger(value: number): string {
21368 return new Intl.NumberFormat('en-US').format(Math.max(0, Math.round(Number(value) || 0)));
21369}
21370
21371function formatCommandTimestamp(value: number, locale: SupportedLocale): string {
21372 return new Intl.DateTimeFormat(locale === 'zh-CN' ? 'zh-CN' : 'en-US', {

Callers 1

formatWeiboHotSearchLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected