MCPcopy
hub / github.com/matschik/component-party.dev / dirNameToTitle

Function dirNameToTitle

scripts/generateReadMeProgress.js:75–77  ·  view source on GitHub ↗
(dirName)

Source from the content-addressed store, hash-verified

73 const rootSectionNames = await fs.readdir(contentURL);
74
75 function dirNameToTitle(dirName) {
76 return capitalize(dirName.split("-").splice(1).join(" "));
77 }
78
79 function capitalize(string) {
80 return string.charAt(0).toUpperCase() + string.slice(1);

Callers 1

parseContentDirFunction · 0.85

Calls 1

capitalizeFunction · 0.85

Tested by

no test coverage detected