{"id":32174413,"url":"https://github.com/dplummer/env_config","last_synced_at":"2026-02-21T15:05:47.556Z","repository":{"id":11712770,"uuid":"68646549","full_name":"dplummer/env_config","owner":"dplummer","description":"Configure elixir app with env variables at run time","archived":false,"fork":false,"pushed_at":"2018-02-04T15:21:17.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-01T08:15:10.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dplummer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-19T21:03:53.000Z","updated_at":"2023-05-14T14:42:56.000Z","dependencies_parsed_at":"2022-07-21T12:32:43.780Z","dependency_job_id":null,"html_url":"https://github.com/dplummer/env_config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dplummer/env_config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplummer%2Fenv_config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplummer%2Fenv_config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplummer%2Fenv_config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplummer%2Fenv_config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dplummer","download_url":"https://codeload.github.com/dplummer/env_config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplummer%2Fenv_config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-10-21T19:01:30.441Z","updated_at":"2026-02-21T15:05:47.547Z","avatar_url":"https://github.com/dplummer.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EnvConfig\n\nHandles fetching values from config with support for runtime ENV loading.\n\nAll credit goes to [bitwalker](https://github.com/bitwalker), this module is\n[copied from this gist](https://gist.github.com/bitwalker/a4f73b33aea43951fe19b242d06da7b9).\n\n## Usage\n\nFetches a value from the config, or from the environment if {:system, \"VAR\"}\nis provided.\n\nAn optional default value can be provided if desired.\n\nIn your `config/config.exs`:\n\n```\n# maybe you start your app with FOO_KEY=abcd\nconfig :foo_app, :some_setting, {:system, \"FOO_KEY\"}\n```\n\nIn your application:\n\n```\nEnvConfig.get(:foo_app, :some_setting) # =\u003e \"abcd\"\n```\n\n## Example\n\n```elixir\niex\u003e {test_var, expected_value} = System.get_env |\u003e Enum.take(1) |\u003e List.first\n...\u003e Application.put_env(:myapp, :test_var, {:system, test_var})\n...\u003e ^expected_value = EnvConfig.get(:myapp, :test_var)\n...\u003e :ok\n:ok\n\niex\u003e Application.put_env(:myapp, :test_var2, 1)\n...\u003e 1 = EnvConfig.get(:myapp, :test_var2)\n1\n\niex\u003e :default = EnvConfig.get(:myapp, :missing_var, :default)\n:default\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `env_config` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:env_config, \"~\u003e 0.1.0\"}]\nend\n```\n\n  2. Ensure `env_config` is started before your application:\n\n```elixir\ndef application do\n  [applications: [:env_config]]\nend\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdplummer%2Fenv_config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdplummer%2Fenv_config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdplummer%2Fenv_config/lists"}