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

Function appName

util.js:56–68  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54}
55
56function appName (self) {
57 var counter = 0, suffix = self.options['app-suffix'];
58 // Have to check this because of generator bug #386
59 process.argv.forEach(function(val) {
60 if (val.indexOf('--app-suffix') > -1) {
61 counter++;
62 }
63 });
64 if (counter === 0 || (typeof suffix === 'boolean' && suffix)) {
65 suffix = 'App';
66 }
67 return suffix ? self._.classify(suffix) : '';
68}
69
70
71module.exports = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected