MCPcopy
hub / github.com/expressjs/generator / copyTemplate

Function copyTemplate

bin/express-cli.js:113–115  ·  view source on GitHub ↗

* Copy file from template directory.

(from, to)

Source from the content-addressed store, hash-verified

111 */
112
113function copyTemplate (from, to) {
114 write(to, fs.readFileSync(path.join(TEMPLATE_DIR, from), 'utf-8'))
115}
116
117/**
118 * Copy multiple files from template directory.

Callers 2

copyTemplateMultiFunction · 0.85
createApplicationFunction · 0.85

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected