MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / hyperlink

Function hyperlink

packages/setupWizard/src/index.ts:36–40  ·  view source on GitHub ↗
(label: string, url: string)

Source from the content-addressed store, hash-verified

34// Render an OSC 8 terminal hyperlink. Terminals that support it show `label`
35// as a clickable link to `url`; others fall back to just the styled label.
36function hyperlink(label: string, url: string): string {
37 const OSC = ']8;;';
38 const ST = '';
39 return `${OSC}${url}${ST}${label}${OSC}${ST}`;
40}
41
42// Wrap `text` to `width` columns, prefixing every line with `indent`.
43function wrapText(text: string, indent: string, width: number): string[] {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected