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

Function formatCount

src/scripts/export-events.ts:78–87  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

76}
77
78const formatCount = (value: number): string => {
79 const rounded = Math.round(value * 100) / 100
80
81 return Number.isInteger(rounded)
82 ? rounded.toLocaleString('en-US')
83 : rounded.toLocaleString('en-US', {
84 maximumFractionDigits: 2,
85 minimumFractionDigits: 2,
86 })
87}
88
89const getOptionValue = (option: string, args: string[], index: number): [string, number] => {
90 const inlineSeparator = `${option}=`

Callers 1

runExportEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected