MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getCliHighlightPromise

Function getCliHighlightPromise

source code/utils/cliHighlight.ts:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40export function getCliHighlightPromise(): Promise<CliHighlight | null> {
41 cliHighlightPromise ??= loadCliHighlight()
42 return cliHighlightPromise
43}
44
45/**
46 * eg. "foo/bar.ts" → "TypeScript". Awaits the shared cli-highlight load,

Callers 5

MarkdownWithHighlightFunction · 0.85
PreviewBoxWithHighlightFunction · 0.85
HighlightedFunction · 0.85
getLanguageNameFunction · 0.85

Calls 1

loadCliHighlightFunction · 0.85

Tested by

no test coverage detected