MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getLanguageFromPath

Function getLanguageFromPath

src/commands/insights.ts:462–465  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

460// ============================================================================
461
462function getLanguageFromPath(filePath: string): string | null {
463 const ext = extname(filePath).toLowerCase()
464 return EXTENSION_TO_LANGUAGE[ext] || null
465}
466
467function extractToolStats(log: LogOption): {
468 toolCounts: Record<string, number>

Callers 1

extractToolStatsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected