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

Function code

graph-ui/src/browser-ai/file-outline.ts:21–21  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

19
20type Words = typeof fileOutlineWords.en;
21const code = (value: string) => `\`${(value.length > VALUE ? `${value.slice(0, VALUE - 1)}…` : value).replace(/`/g, "'")}\``;
22const lineCount = (text: string) => text ? text.split(/\r?\n/).length - (/\r?\n$/.test(text) ? 1 : 0) : 0;
23const extension = (path: string) => (path.split('/').pop() ?? path).split('.').slice(1).pop()?.toLowerCase() ?? '';
24

Callers 3

scalarTextFunction · 0.70
entryLinesFunction · 0.70
fileOutlineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected