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

Function titleFromPath

integrations/raycast/src/lib/zen.ts:181–184  ·  view source on GitHub ↗
(relPath: string)

Source from the content-addressed store, hash-verified

179}
180
181export function titleFromPath(relPath: string): string {
182 const basename = path.posix.basename(relPath);
183 return basename.replace(/\.md$/i, "") || relPath;
184}
185
186export function toLoadError(err: unknown): LoadError {
187 if (err instanceof ZenCliNotFoundError || isMissingExecutableError(err)) {

Callers 1

parseNoteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected