MCPcopy Index your code
hub / github.com/Create-Node-App/create-node-app / appendFile

Function appendFile

src/loaders.js:40–43  ·  view source on GitHub ↗
(src, dest, verbose)

Source from the content-addressed store, hash-verified

38}
39
40function appendFile(src, dest, verbose) {
41 const content = fs.readFileSync(src, 'utf8');
42 writeFile(dest, content, 'a+', verbose);
43}
44
45function getModeFromPath(path = '') {
46 const matchExts = (...exts) => exts.find((ext) => path.endsWith(ext));

Callers 1

appendLoaderFunction · 0.85

Calls 1

writeFileFunction · 0.85

Tested by

no test coverage detected