MCPcopy Create free account
hub / github.com/Codehagen/Badget / formatNumber

Function formatNumber

src/components/github-stats.tsx:26–31  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

24 }, []);
25
26 const formatNumber = (num: number): string => {
27 if (num >= 1000) {
28 return `${(num / 1000).toFixed(1)}k`;
29 }
30 return num.toString();
31 };
32
33 return (
34 <section className="w-full max-w-4xl space-y-6">

Callers 1

GitHubStatsSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected