(text: string, url: string, color?: (s: string) => string)
| 9 | * Creates a clickable terminal hyperlink using OSC 8 escape sequence. |
| 10 | */ |
| 11 | export function terminalLink(text: string, url: string, color?: (s: string) => string): string { |
| 12 | const colorFn = color ?? ((s: string) => s); |
| 13 | return `\x1b]8;;${url}\x07${colorFn(text)}\x1b]8;;\x07 ${pc.white("↗")}`; |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Formats install count into a popularity star rating (4 stars). |
no outgoing calls
no test coverage detected