MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / modifyFileContent

Function modifyFileContent

modules/code-generator/src/cli/init-solution.ts:23–27  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

21 }
22
23 const modifyFileContent = (content: string) =>
24 content
25 .replace(/hello-world/g, changeCase.paramCase(solutionName))
26 .replace(/HelloWorld/g, changeCase.pascalCase(solutionName))
27 .replace(/Hello World/g, changeCase.titleCase(solutionName));
28
29 await ensureDirExists(solutionPath);
30

Callers 1

initSolutionFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…