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

Function csvPathFromDatabaseTab

packages/shared-domain/src/databases.ts:240–249  ·  view source on GitHub ↗
(path: string | null | undefined)

Source from the content-addressed store, hash-verified

238}
239
240export function csvPathFromDatabaseTab(path: string | null | undefined): string | null {
241 if (!path || !isDatabaseTabPath(path)) return null
242 const encoded = path.slice(DATABASE_TAB_PREFIX.length)
243 if (!encoded) return null
244 try {
245 return decodeURIComponent(encoded)
246 } catch {
247 return encoded
248 }
249}
250
251export function databaseTitleFromTab(path: string | null | undefined): string {
252 const csv = csvPathFromDatabaseTab(path)

Callers 2

DatabaseViewFunction · 0.90
databaseTitleFromTabFunction · 0.85

Calls 1

isDatabaseTabPathFunction · 0.85

Tested by

no test coverage detected