MCPcopy Create free account
hub / github.com/code-pushup/cli / shieldsBadge

Function shieldsBadge

packages/utils/src/lib/reports/utils.ts:91–96  ·  view source on GitHub ↗
(text: string, color: string)

Source from the content-addressed store, hash-verified

89}
90
91export function shieldsBadge(text: string, color: string): InlineText {
92 return md.image(
93 `https://img.shields.io/badge/${encodeURIComponent(text)}-${color}`,
94 text,
95 );
96}
97
98export function formatDiffNumber(diff: number): string {
99 const number =

Callers 1

colorByScoreDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected