Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/nodejs.org
/ stoplight
Function
stoplight
apps/site/scripts/lighthouse/index.mjs:3–3 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
'use strict'
;
2
3
const
stoplight = res => (res >= 90 ?
'🟢'
: res >= 75 ?
'🟠'
:
'🔴'
);
4
const
normalizeScore = res => Math.round(res * 100);
5
const
formatScore = res => {
6
const
normalizedScore = normalizeScore(res);
Callers
1
formatScore
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected