(count: number | undefined)
| 38 | * Returns the install count as a human-readable range string. |
| 39 | */ |
| 40 | export function formatInstallRange(count: number | undefined): string { |
| 41 | if (count === undefined || count === 0) return "Unknown"; |
| 42 | if (count < 100) return "<100"; |
| 43 | if (count < 500) return "<500"; |
| 44 | if (count < 1000) return "<1,000"; |
| 45 | return "1,000+"; |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Formats trust score as High / Medium / Low label. |
no outgoing calls
no test coverage detected