MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / formatBytes

Function formatBytes

benchmarks/aggregate-benchmarks.mjs:76–78  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

74}
75
76function formatBytes(value) {
77 return typeof value === 'number' ? `${(value / 1024).toFixed(1)} KiB` : '—'
78}
79
80function formatPercent(value) {
81 return typeof value === 'number' ? `${value.toFixed(1)}%` : '—'

Callers 1

buildMarkdownReportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected