{"id":32169613,"url":"https://github.com/ammbot/config_env","last_synced_at":"2026-02-20T16:01:25.595Z","repository":{"id":57485382,"uuid":"107092686","full_name":"ammbot/config_env","owner":"ammbot","description":"Configuration loader from system environment","archived":false,"fork":false,"pushed_at":"2017-10-17T04:26:16.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-02T23:55:44.132Z","etag":null,"topics":["elixir"],"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/ammbot.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":"2017-10-16T07:28:06.000Z","updated_at":"2018-11-28T17:45:19.000Z","dependencies_parsed_at":"2022-08-26T13:41:44.430Z","dependency_job_id":null,"html_url":"https://github.com/ammbot/config_env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ammbot/config_env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammbot%2Fconfig_env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammbot%2Fconfig_env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammbot%2Fconfig_env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammbot%2Fconfig_env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammbot","download_url":"https://codeload.github.com/ammbot/config_env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammbot%2Fconfig_env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["elixir"],"created_at":"2025-10-21T16:34:48.987Z","updated_at":"2026-02-20T16:01:25.590Z","avatar_url":"https://github.com/ammbot.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConfigEnv\n\n**Configuration loader from system environment**\n\n## Why?\nensure that all system environment is set and convert to properly type.\n\n## Installation\n\nFirst, add ConfigEnv to your mix.exs dependencies:\n```elixir\ndef deps do\n  [\n    {:config_env, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n## Usage\n\nin `config.exs`\n```elixir\nconfig :your_app,\n    string: {:system, \"KEY\"},\n    atom: {:system, \"ATOM\"},\n    integer: {:system, \"INTEGER\", :integer},\n    float: {:system, \"FLOAT\", :float},\n    list: {:system, \"LIST\", :list}\n```\nit can be nested\n```elixir\nconfig :your_app,\n    nested: %{\n        key: {:system, \"KEY\"},\n        another_nested: [\n            key: {:system, \"ANOTHER_KEY\"}\n        ]\n    }\n```\nput this code before start your app\n```elixir\ndefmodule YourApp do\n  use Application\n\n  def start(_type, _args) do\n    ConfigEnv.load_env([:yourapp, :otherapp, ...])\n    # your code\n  end\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammbot%2Fconfig_env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammbot%2Fconfig_env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammbot%2Fconfig_env/lists"}