Skip to content

An easy to use dotenv package for Ring.

License

Notifications You must be signed in to change notification settings

ysdragon/dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotenv

An easy to use dotenv package for Ring

Ring

Features

  • 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.

How to install?

Using Ring Package Manager ringpm

ringpm install dotenv

Example

load "dotenv.ring"

dotenv = new dotenv

// Load default .env file
dotenv.loadDefault()

testVar = dotenv.getEnv("USERNAME")

print(testVar)

License

This project is open-source and available under the MIT License. See the LICENSE file for more details.