Creates a new EnvLoader instance
The application root directory as string or URL
Whether to load .env.example file
Returns the absolute paths of the dot-env files in loading priority order
Load contents of the main dot-env file and the current environment dot-env file
Promise resolving to array of loaded environment files
Read the contents of one or more dot-env files. Following is how the files are read.
Load file from the "ENV_PATH" environment file. (Raise error if file is missing)
If "ENV_PATH" is not defined, then find ".env" file in the app root. (Ignore if file is missing)
Find ".env.[NODE_ENV]" file in the app root. (Ignore if file is missing)