MCPcopy Index your code
hub / github.com/getagentseal/codeburn / projectNameFromPath

Function projectNameFromPath

src/parser.ts:59–62  ·  view source on GitHub ↗
(projectPath: string, fallback: string)

Source from the content-addressed store, hash-verified

57}
58
59function projectNameFromPath(projectPath: string, fallback: string): string {
60 const normalized = projectPath.trim().replace(/\\/g, '/').replace(/\/+$/, '')
61 return normalized.split('/').filter(Boolean).pop() ?? fallback
62}
63
64
65// Returns true for sessions whose canonical project key must NOT be derived

Callers 3

scanProjectDirsFunction · 0.70
parseAllSessionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected