{"id":13508944,"url":"https://github.com/reset/libex-config","last_synced_at":"2025-03-24T06:41:59.468Z","repository":{"id":16575562,"uuid":"19329604","full_name":"reset/libex-config","owner":"reset","description":"Helpers for accessing OTP application configuration","archived":false,"fork":false,"pushed_at":"2014-09-02T18:59:11.000Z","size":156,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T18:38:29.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/libex_config","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"strycore/jcrop-fileinput","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reset.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-30T22:46:13.000Z","updated_at":"2018-06-08T06:07:43.000Z","dependencies_parsed_at":"2022-07-26T05:46:19.990Z","dependency_job_id":null,"html_url":"https://github.com/reset/libex-config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reset%2Flibex-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reset%2Flibex-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reset%2Flibex-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reset%2Flibex-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reset","download_url":"https://codeload.github.com/reset/libex-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245223853,"owners_count":20580361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:01:00.767Z","updated_at":"2025-03-24T06:41:59.440Z","avatar_url":"https://github.com/reset.png","language":"Elixir","funding_links":[],"categories":["OTP"],"sub_categories":[],"readme":"# LibEx.Config\n\nLibEx.Config exposes helpers around accessing OTP application configuration\n\n# Usage\n\nCreate a new module and use `LibEx.Config` passing the atom for the name of the application's configuration to wrap:\n\n```elixir\ndefmodule MyApp.Config do\n  use LibEx.Config, application: :my_app\n\n  defkey :db_host\n  defkey :db_port\n  defkey :db_user\n  defkey :db_pass\nend\n```\n\nEach `defkey` call maps to a setting you define in your mix file:\n\n```elixir\ndefmodule MyApp.Mixfile do\n  def application do\n    [\n      env: [\n        env:     :dev,\n        db_host: \"localhost\",\n        db_port: 5432,\n        db_user: \"postgres\",\n        db_pass: \"postgres\",\n        db_name: \"my_app\"\n      ]\n    ]\n  end\nend\n```\n\nNow you can get the configured variables\n\n```elixir\nMyApp.Config.db_host\n```\n\nOr set them\n\n```elixir\nMyAppConfig.db_host(\"other_database_name\")\n```\n\n# Authors\n\nJamie Winsor (\u003cjamie@vialstudios.com\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freset%2Flibex-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freset%2Flibex-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freset%2Flibex-config/lists"}