- Read environment variables from
.env
files. - Read environment variables from custom .env files.
- Set config variables to the environment.
- Unset config variables from the environment.
Using Ring Package Manager ringpm
ringpm install dotenv
load "dotenv.ring"
dotenv = new dotenv
// Load default .env file
dotenv.loadDefault()
testVar = dotenv.getEnv("USERNAME")
print(testVar)
This project is open-source and available under the MIT License. See the LICENSE file for more details.