MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / noteTitleFromRelPath

Function noteTitleFromRelPath

apps/desktop/src/main/index.ts:1450–1453  ·  view source on GitHub ↗
(relPath: string)

Source from the content-addressed store, hash-verified

1448}
1449
1450function noteTitleFromRelPath(relPath: string): string {
1451 const base = path.posix.basename(relPath)
1452 return base.replace(/\.md$/i, '') || 'Note'
1453}
1454
1455function sanitizePdfFilename(name: string): string {
1456 const sanitized = name

Callers 1

exportNotePdfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected