MCPcopy
hub / github.com/coder/mux / getProjectName

Method getProjectName

src/node/utils/paths.main.ts:258–260  ·  view source on GitHub ↗

* Get project name from path (OS-aware) * Extracts the final directory name from a project path

(projectPath: string)

Source from the content-addressed store, hash-verified

256 * Extracts the final directory name from a project path
257 */
258 static getProjectName(projectPath: string): string {
259 return this.basename(projectPath) || "unknown";
260 }
261}

Callers 8

paths.test.tsFile · 0.45
getProjectNameFunction · 0.45
getPrimaryProjectNameFunction · 0.45
projectMemoryDirNameFunction · 0.45
sanitizeStorageKeyFunction · 0.45

Calls 1

basenameMethod · 0.95

Tested by

no test coverage detected