MCPcopy Create free account
hub / github.com/Create-Node-App/create-node-app / appendLoader

Function appendLoader

src/loaders.js:64–67  ·  view source on GitHub ↗
({ root, templateDir, verbose })

Source from the content-addressed store, hash-verified

62};
63
64const appendLoader = ({ root, templateDir, verbose }) => ({ path }) => {
65 const newPath = path.replace(/.append$/, '');
66 appendFile(`${templateDir}/${path}`, `${root}/${newPath}`, verbose);
67};
68
69const templateLoader = ({ root, templateDir, appName, alias, verbose, mode }) => ({ path }) => {
70 const flag = mode.includes('append') ? 'a+' : 'w';

Callers

nothing calls this directly

Calls 1

appendFileFunction · 0.85

Tested by

no test coverage detected