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

Function getLanguageName

source code/utils/cliHighlight.ts:51–56  ·  view source on GitHub ↗
(file_path: string)

Source from the content-addressed store, hash-verified

49 * on this, they fire-and-forget or the consumer already handles Promise<string>.
50 */
51export async function getLanguageName(file_path: string): Promise<string> {
52 await getCliHighlightPromise()
53 const ext = extname(file_path).slice(1)
54 if (!ext) return 'unknown'
55 return loadedGetLanguage?.(ext)?.name ?? 'unknown'
56}

Callers 2

FilePermissionDialogFunction · 0.85

Calls 1

getCliHighlightPromiseFunction · 0.85

Tested by

no test coverage detected