MCPcopy Create free account
hub / github.com/arktypeio/arktype / readMeta

Function readMeta

ark/docs/lib/content/pageTree.ts:87–90  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

85 relative(contentDir, path).split(sep).join("/")
86
87const readMeta = (dir: string): MetaJson | undefined => {
88 const path = join(dir, "meta.json")
89 return existsSync(path) ? JSON.parse(readFileSync(path, "utf8")) : undefined
90}
91
92const isDir = (path: string) => existsSync(path) && statSync(path).isDirectory()
93

Callers 2

resolveFolderFunction · 0.85
buildPageTreeFunction · 0.85

Calls 2

joinFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected