function loadEnvFile() {
    try {
        const sEnvPath = path.resolve(DIR_NAME, '.env');
        fs.statSync(sEnvPath);
        require('dotenv').config({ path: sEnvPath });
    } catch (e) {
        throw new Error('.env file not found.');
    }
}
/**
 * checks if .env file exists and loads it
 * @throws Error if file doest not exists
 */
checks if .env file exists and loads it
@throws Error if file doest not exists
checks if . env file exists and loads it @throws Error if file doest not exists
function loadEnvFile() {
    try {
        const sEnvPath = path.resolve(DIR_NAME, '.env');
        fs.statSync(sEnvPath);
        require('dotenv').config({ path: sEnvPath });
    } catch (e) {
        throw new Error('.env file not found.');
    }
}
function loadEnvFile ( ) { try { const sEnvPath = path . resolve ( DIR_NAME , '.env' ) ; fs . statSync ( sEnvPath ) ; require ( 'dotenv' ) . config ( { path : sEnvPath } ) ; } catch ( e ) { throw new Error ( '.env file not found.' ) ; } }
checks if .env file exists and loads it
 @throws Error if file doest not exists
checks if . env file exists and loads it @throws Error if file doest not exists