Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Justineo/github-hovercard
/ formatNumber
Function
formatNumber
src/hovercard.js:893–898 ·
view source on GitHub ↗
(num)
Source
from the content-addressed store, hash-verified
891
}
892
893
function
formatNumber(num) {
894
if
(num >= 1000) {
895
return
(num / 1000).toFixed(1) +
'k'
896
}
897
return
num
898
}
899
900
const
MONTH_NAMES = [
901
'Jan'
,
Callers
1
getCardHTML
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected