View Source Enux

A package for reading environmental variables from env and json style configuration files and injecting them into your application. you can also validate and document your environment.

Installation

The package can be installed by adding enux to your list of dependencies in mix.exs:

defp deps do
  [
    {:enux, "~> 0.9.19"},

    # if you want to load json files, you should have either this
    {:jason, "~> 1.3"}
    # or this
    {:poison, "~> 5.0"}
    # or this
    {:jaxon, "~> 2.0"}
    # or this
    {:thoas, "~> 0.2"}
    # or this
    {:jsone, "~> 1.7"}
    # or this
    {:jiffy, "~> 1.0"}
    # or this
    {:json, "~> 1.4"}
  ]
end

Documentation can be found at https://hexdocs.pm/enux.