MCPcopy Index your code
hub / github.com/amercier/generator-angular-php / rewriteFile

Function rewriteFile

util.js:46–54  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

44}
45
46function rewriteFile (args) {
47 args.path = args.path || process.cwd();
48 var fullPath = path.join(args.path, args.file);
49
50 args.haystack = fs.readFileSync(fullPath, 'utf8');
51 var body = rewrite(args);
52
53 fs.writeFileSync(fullPath, body);
54}
55
56function appName (self) {
57 var counter = 0, suffix = self.options['app-suffix'];

Callers

nothing calls this directly

Calls 1

rewriteFunction · 0.85

Tested by

no test coverage detected