MCPcopy
hub / github.com/intentui/intentui / exampleSlugFromFile

Function exampleSlugFromFile

src/scripts/generate-registry.ts:272–272  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

270}
271
272const exampleSlugFromFile = (file: string) => stripExt(path.basename(file))
273
274const collectBlocks = async (pagePath: string, code: string) => {
275 const groupRoot = path.dirname(path.dirname(pagePath))

Callers 1

buildExampleItemFunction · 0.85

Calls 1

stripExtFunction · 0.85

Tested by

no test coverage detected