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

Function formatProgress

src/import-events.ts:38–40  ·  view source on GitHub ↗
(stats: EventImportStats)

Source from the content-addressed store, hash-verified

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)}]`
40}
41
42const printUsage = (): void => {
43 console.log('Usage: nostream import <file.jsonl|file.json> [--batch-size <number>]')

Callers 2

onProgressFunction · 0.85
runImportEventsFunction · 0.85

Calls 1

formatNumberFunction · 0.85

Tested by

no test coverage detected