MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / parseLabel

Function parseLabel

scripts/sync-theme-accents.mjs:19–24  ·  view source on GitHub ↗
(stem)

Source from the content-addressed store, hash-verified

17}
18
19function parseLabel(stem) {
20 return stem
21 .split("-")
22 .map((word) => word === word.toUpperCase() ? word : word.charAt(0).toUpperCase() + word.slice(1))
23 .join(" ");
24}
25
26async function main() {
27 let settingsContent = await fs.promises.readFile(settingsDataPath, "utf8");

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected