code: function detectEnvironment() {
      var _default = 'development';
      if (process.argv.length > 2) {
        for (var i = 0; i < process.argv.length; i++) {
          var prop = process.argv[i];
          if (prop.toLowerCase().indexOf('env=') === -1) continue;
          var env = prop.split('env=')[1] || null;
          if (env) return env;
        }
      }
      if (typeof process.env.NODE_ENV === 'string' && process.env.NODE_ENV !== '') return process.env.NODE_ENV;
      return _default;
    }
docs: /*
  Private function that tries to detect the application's environment.
  The environment of an application can be set by either (with the following priority)
  1. Passing it as a command line argument.
  2. Specifying the NODE_ENV environment variable
  3. Default environment set to development