A .NET library to load environment variables from .env files
Load options are now an object that is passed in, rather than a list of named arguments.
Also added 2 additional load options:
parseVariables
-- parse env vars in other env vars inside .env
filerequireEnvFile
-- true
if app should fail if no .env
file present, false
if it should continue running without oneNOTE: requireEnvFile
should basically always be false because in production you should not be using a .env
file!! It defaults to true for backwards compatibility for now, but someday perhaps we will change this.
Also, Env. DEFAULT_ENVFILENAME
is now publicly accessible for applications to reference it if desired.
Now supports back to .NET Standard 1.3 / .NET Framework 4.6 ( https://github.com/dotnet/standard/blob/master/docs/versions.md )
Flag arguments to enable:
Uses OS specific rules for env var clobbering (Windows is case insensitive, Linux is case sensitive)
Some new helper methods for getting env var values as bool, int or double.
Loading env vars from a Stream