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

Function copyTemplateMulti

bin/express-cli.js:121–127  ·  view source on GitHub ↗

* Copy multiple files from template directory.

(fromDir, toDir, nameGlob)

Source from the content-addressed store, hash-verified

119 */
120
121function copyTemplateMulti (fromDir, toDir, nameGlob) {
122 fs.readdirSync(path.join(TEMPLATE_DIR, fromDir))
123 .filter(minimatch.filter(nameGlob, { matchBase: true }))
124 .forEach(function (name) {
125 copyTemplate(path.join(fromDir, name), path.join(toDir, name))
126 })
127}
128
129/**
130 * Create application at the given directory.

Callers 1

createApplicationFunction · 0.85

Calls 1

copyTemplateFunction · 0.85

Tested by

no test coverage detected