MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / detectLanguage

Function detectLanguage

src/core/parser.ts:104–106  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

102];
103
104function detectLanguage(filePath: string): string | null {
105 return LANG_MAP[extname(filePath).toLowerCase()] ?? null;
106}
107
108function extractHeader(lines: string[]): string {
109 const headerLines: string[] = [];

Callers 2

analyzeFileFunction · 0.85
isSupportedFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected