MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / projectNameFor

Function projectNameFor

graph-ui/src/projects/projects-model.ts:362–366  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

360 * string. A path that is only separators, or empty, suggests nothing.
361 */
362export function projectNameFor(path: string): string {
363 const trimmed = path.replace(/[\\/]+$/, '');
364 const segment = trimmed.split(/[\\/]/).pop() ?? '';
365 return segment;
366}
367
368/** The address of a project in this window: the page reloads with it. */
369export function projectHref(name: string): string {

Callers 3

changePathFunction · 0.90
useFolderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected