MCPcopy Index your code
hub / github.com/ProNextJS/declarative-routing / buildFileFromTemplate

Function buildFileFromTemplate

src/template.ts:24–33  ·  view source on GitHub ↗
(
  templatePath: string,
  destinationPath: string,
  data: unknown
)

Source from the content-addressed store, hash-verified

22}
23
24export async function buildFileFromTemplate(
25 templatePath: string,
26 destinationPath: string,
27 data: unknown
28) {
29 fs.writeFileSync(
30 destinationPath,
31 await buildStringFromTemplate(templatePath, data)
32 );
33}

Callers 5

setupFunction · 0.90
setupFunction · 0.90
createInfoFileFunction · 0.90
buildREADMEFunction · 0.90
setupFunction · 0.90

Calls 1

buildStringFromTemplateFunction · 0.85

Tested by

no test coverage detected