{"id":13507662,"url":"https://github.com/trestrantham/ex_figaro","last_synced_at":"2025-10-21T18:42:27.233Z","repository":{"id":18181165,"uuid":"21296250","full_name":"trestrantham/ex_figaro","owner":"trestrantham","description":"Figaro for Elixir","archived":false,"fork":false,"pushed_at":"2016-03-11T14:45:29.000Z","size":19,"stargazers_count":9,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:06:50.572Z","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/trestrantham.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":"2014-06-28T04:47:24.000Z","updated_at":"2023-09-05T12:52:07.000Z","dependencies_parsed_at":"2022-08-25T15:50:55.441Z","dependency_job_id":null,"html_url":"https://github.com/trestrantham/ex_figaro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trestrantham%2Fex_figaro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trestrantham%2Fex_figaro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trestrantham%2Fex_figaro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trestrantham%2Fex_figaro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trestrantham","download_url":"https://codeload.github.com/trestrantham/ex_figaro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246301963,"owners_count":20755512,"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:00:37.525Z","updated_at":"2025-10-21T18:42:22.194Z","avatar_url":"https://github.com/trestrantham.png","language":"Elixir","funding_links":[],"categories":["Configuration"],"sub_categories":[],"readme":"Figaro\n======\n[![Build Status](http://img.shields.io/travis/trestrantham/ex_figaro.svg?style=flat \"Build Status\")](http://travis-ci.org/trestrantham/ex_figaro)\n[![Coverage Status](http://img.shields.io/coveralls/trestrantham/ex_figaro.svg?style=flat)](https://coveralls.io/r/trestrantham/ex_figaro?branch=master)\n\nPort of [@laserlemon](http://github.com/laserlemon)'s [Figaro](http://github.com/laserlemon/figaro)\ngem to Elixir. Please see original project for additional details and history.\nDocumentation is lifted from [@laserlemon](http://github.com/laserlemon)'s gem\nverbatim (where applicable) in an effort to provide full feature parity.\n\n### Getting Started\n\nAdd Figaro as a dependency in your `mix.exs` file.\n\n```elixir\ndefp deps do\n  [{ :figaro, \"\u003e= 0.0.0\" }]\nend\n```\n\nYou should also update your applications list to include Figaro:\n\n```elixir\ndef application do\n  [applications: [:figaro]]\nend\n```\n\nAfter you are done, run `mix deps.get` in your shell to fetch the dependencies.\n\n### Usage\n\nGiven the following configuration file:\n\n```yaml\n# config/application.yml\n\nfoo: bar\nbaz: qux\n```\n\nYou will have access to configuration values via `Figaro.env`:\n\n```elixir\niex\u003e Figaro.env.foo\n\"bar\"\niex\u003e Figaro.env.baz\n\"qux\"\niex\u003e Figaro.env\n%{foo: \"bar\", baz: \"qux\"}\n```\n\nFigaro also sets `ENV` with values defined in `application.yml`:\n\n```elixir\niex\u003e System.get_env(\"FOO\")\n\"bar\"\niex\u003e System.get_env(\"BAZ\")\n\"qux\"\n```\n\n**Please note:** `ENV` is a simple key/value store. All values will be converted\nto strings. Deeply nested configuration structures are not possible.\n\n### Environment-Specific Configuration\n\nOftentimes, local configuration values change depending on your environment.\nIn such cases, you can add environment-specific values to your configuration file:\n\n```yaml\n# config/application.yml\n\nfoo: foo\nbar: bar\n\ntest:\n  foo: sekret\n  bar: noway\n```\n\nYou can also nullify configuration values for a specific environment:\n\n```yaml\n# config/application.yml\n\nfoo: foo\nbar: bar\n\ntest:\n  foo: ~\n```\n\nAssuming you are running from the test environment:\n\n```elixir\niex\u003e System.get_env(\"FOO\")\nnil\niex\u003e System.get_env(\"BAR\")\n\"bar\"\n```\n\n**Please note:** The environment names (`test` above) are derived from `Mix.env`.\nAny other keys defining nested configuration values will be ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrestrantham%2Fex_figaro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrestrantham%2Fex_figaro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrestrantham%2Fex_figaro/lists"}