MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getNoteName

Function getNoteName

src/main/import/notes/obsidian.ts:37–43  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

35}
36
37function getNoteName(filePath: string): string {
38 const basename = path.posix.basename(filePath)
39 return normalizeImportEntryName(
40 basename.toLowerCase().endsWith('.md') ? basename.slice(0, -3) : basename,
41 'Untitled note',
42 )
43}
44
45function parseFrontmatter(content: string): {
46 content: string

Callers 1

Calls 1

normalizeImportEntryNameFunction · 0.90

Tested by

no test coverage detected