index.js
function loadEnv(name) {
    var fullEnvPath = path.resolve(applicationRoot, './configs/' + name);
    try {
      debug('Loaded environment: ' + fullEnvPath);
      fs.statSync(fullEnvPath);
      dotenv.config({ path: fullEnvPath });
    }
    catch (e) {
      debug('Could not load environment "' + fullEnvPath + '"');
    }
  }
function loadEnv(name) {
    var fullEnvPath = path.resolve(applicationRoot, './configs/' + name);
    try {
      debug('Loaded environment: ' + fullEnvPath);
      fs.statSync(fullEnvPath);
      dotenv.config({ path: fullEnvPath });
    }
    catch (e) {
      debug('Could not load environment "' + fullEnvPath + '"');
    }
  }
function loadEnv ( name ) { var fullEnvPath = path . resolve ( applicationRoot , './configs/' + name ) ; try { debug ( 'Loaded environment: ' + fullEnvPath ) ; fs . statSync ( fullEnvPath ) ; dotenv . config ( { path : fullEnvPath } ) ; } catch ( e ) { debug ( 'Could not load environment "' + fullEnvPath + '"' ) ; } }
Loads a specific environment with the given name.
@param {string} name Name of the environment file to load.
Loads a specific environment with the given name .