Skip to content

Racket library to load environment variables from .env files.

License

Notifications You must be signed in to change notification settings

royallthefourth/dotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotenv

Build Status

This library allows Racket applications to override their environment variables with a .env file.

Usage

To load .env, require the package and invoke it:

(require dotenv)
(dotenv-load!)

To use the lightweight library-only version without documentation or test dependencies, use dotenv-lib instead.

To use multiple files, use path-string? rest arguments:

(require dotenv)
(dotenv-load! "database.env" "api.env")

More details in the official documentation.