Envy

Provides explicit and auto loading of env files.

Example

The following will set the FOO environment variable with the value of bar.

foo=bar

You can define comments with # but can’t use # in values without wrapping the value in double quotes.

foo="#bar" # Comment

Summary

Functions

Loads the .env and the Mix.env specific env file

Loads a list of env files

Parses env formatted file

Functions

auto_load()

Loads the .env and the Mix.env specific env file.

eg: If Mix.env is test then envy will attempt to load .env.test.

load(env_files)

Loads a list of env files.

parse(content)

Parses env formatted file.