MCPcopy Create free account
hub / github.com/afar1/fieldtheory-cli / titleFromLibrary

Function titleFromLibrary

src/navigation.ts:105–107  ·  view source on GitHub ↗
(doc: LibraryDocumentSummary)

Source from the content-addressed store, hash-verified

103};
104
105function titleFromLibrary(doc: LibraryDocumentSummary): string {
106 return doc.title || path.basename(doc.relPath, path.extname(doc.relPath));
107}
108
109function libraryEntry(doc: LibraryDocumentSummary, place: NavigationPlace = 'library'): NavigationEntry {
110 return {

Callers 1

libraryEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected