MCPcopy
hub / github.com/codeaashu/claude-code / osc8Id

Function osc8Id

src/ink/termio/osc.ts:412–417  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

410}
411
412function osc8Id(url: string): string {
413 let h = 0
414 for (let i = 0; i < url.length; i++)
415 h = ((h << 5) - h + url.charCodeAt(i)) | 0
416 return (h >>> 0).toString(36)
417}
418
419/** End a hyperlink (OSC 8) */
420export const LINK_END = osc(OSC.HYPERLINK, '', '')

Callers 1

linkFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected