MCPcopy
hub / github.com/shadcnblocks/kibo / processFolderName

Function processFolderName

apps/docs/lib/patterns.ts:1–8  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1export const processFolderName = (name: string) =>
2 name
3 .split("-")
4 .map((word) => (word === "ai" ? "AI" : word))
5 .map((word) => (word === "kbd" ? "kbd" : word))
6 .map((word) => (word === "otp" ? "OTP" : word))
7 .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
8 .join(" ");

Callers 4

sidebar.tsxFile · 0.90
generateMetadataFunction · 0.90
ComponentPreviewFunction · 0.90
FooterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected