libex_config alternatives and similar packages
Based on the "OTP" category.
Alternatively, view libex_config alternatives based on common mentions on social networks and blogs.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of libex_config or a related project?
LibEx.Config exposes helpers around accessing OTP application configuration
Create a new module and use
LibEx.Config passing the atom for the name of the application's configuration to wrap:
defmodule MyApp.Config do use LibEx.Config, application: :my_app defkey :db_host defkey :db_port defkey :db_user defkey :db_pass end
defkey call maps to a setting you define in your mix file:
defmodule MyApp.Mixfile do def application do [ env: [ env: :dev, db_host: "localhost", db_port: 5432, db_user: "postgres", db_pass: "postgres", db_name: "my_app" ] ] end end
Now you can get the configured variables
Or set them
Jamie Winsor ([email protected])