MCPcopy Index your code
hub / github.com/upstash/context7 / getReputationLabel

Function getReputationLabel

packages/cli/src/commands/docs.ts:14–19  ·  view source on GitHub ↗
(score: number | undefined)

Source from the content-addressed store, hash-verified

12const isTTY = process.stdout.isTTY;
13
14function getReputationLabel(score: number | undefined): "High" | "Medium" | "Low" | "Unknown" {
15 if (score === undefined || score < 0) return "Unknown";
16 if (score >= 7) return "High";
17 if (score >= 4) return "Medium";
18 return "Low";
19}
20
21function getAccessToken(): string | undefined {
22 const tokens = loadTokens();

Callers 1

formatLibraryResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected