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

Function write

bin/express-cli.js:536–539  ·  view source on GitHub ↗

* echo str > file. * * @param {String} file * @param {String} str

(file, str, mode)

Source from the content-addressed store, hash-verified

534 */
535
536function write (file, str, mode) {
537 fs.writeFileSync(file, str, { mode: mode || MODE_0666 })
538 console.log(' \x1b[36mcreate\x1b[0m : ' + file)
539}

Callers 2

copyTemplateFunction · 0.85
createApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected