MCPcopy Create free account
hub / github.com/Qinbf/groundmap / friendlyLabel

Function friendlyLabel

web/components/GraphView.tsx:219–222  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

217 return segs[segs.length - 1];
218}
219function friendlyLabel(path: string): string {
220 const noExt = path.replace(/\.md$/, "");
221 return noExt.startsWith("wiki/") ? noExt.slice(5) : noExt;
222}
223const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v));
224
225function mixWhite(hex: string, amount: number): string {

Callers 1

HoverCardFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected