MCPcopy Index your code
hub / github.com/cameri/nostream / formatNumber

Function formatNumber

src/import-events.ts:36–36  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

34const MAX_ERROR_LOGS = 20
35
36const formatNumber = (value: number): string => value.toLocaleString('en-US')
37
38const formatProgress = (stats: EventImportStats): string => {
39 return `[Processed: ${formatNumber(stats.processed)} | Inserted: ${formatNumber(stats.inserted)} | Skipped: ${formatNumber(stats.skipped)} | Errors: ${formatNumber(stats.errors)}]`

Callers 2

formatProgressFunction · 0.85
runImportEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected