{"id":20373100,"url":"https://github.com/gluons/mysticonfig","last_synced_at":"2026-05-10T07:38:40.525Z","repository":{"id":56885022,"uuid":"115904374","full_name":"gluons/mysticonfig","owner":"gluons","description":"🔮 The configuration loader for wizard.","archived":false,"fork":false,"pushed_at":"2018-04-30T10:06:10.000Z","size":730,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T04:49:01.412Z","etag":null,"topics":["config","config-loader","configuration","configuration-loader","json","rc","yaml"],"latest_commit_sha":null,"homepage":"https://git.io/mysticonfig","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gluons.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":"2018-01-01T07:01:25.000Z","updated_at":"2018-04-30T10:06:12.000Z","dependencies_parsed_at":"2022-08-21T00:20:22.604Z","dependency_job_id":null,"html_url":"https://github.com/gluons/mysticonfig","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fmysticonfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fmysticonfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fmysticonfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gluons%2Fmysticonfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gluons","download_url":"https://codeload.github.com/gluons/mysticonfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241921836,"owners_count":20042763,"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":["config","config-loader","configuration","configuration-loader","json","rc","yaml"],"created_at":"2024-11-15T01:16:34.842Z","updated_at":"2026-05-10T07:38:35.480Z","avatar_url":"https://github.com/gluons.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysticonfig\n[![license](https://img.shields.io/github/license/gluons/mysticonfig.svg?style=flat-square)](./LICENSE)\n[![Gem](https://img.shields.io/gem/v/mysticonfig.svg?style=flat-square)](https://rubygems.org/gems/mysticonfig)\n[![Gem](https://img.shields.io/gem/dt/mysticonfig.svg?style=flat-square)](https://rubygems.org/gems/mysticonfig)\n[![Libraries.io for GitHub](https://img.shields.io/librariesio/github/gluons/mysticonfig.svg?style=flat-square)](https://libraries.io/github/gluons/mysticonfig)\n[![Travis](https://img.shields.io/travis/gluons/mysticonfig.svg?style=flat-square)](https://travis-ci.org/gluons/mysticonfig)\n\u003cbr\u003e\u003cbr\u003e\n\u003cp align=\"center\"\u003e\n\t\u003cstrong\u003e🔮 The configuration loader for wizard.\u003c/strong\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nA library to load `.appnamerc`, `.appnamerc.json` or `.appnamerc.yaml` config file easily.\n\n`mysticonfig` will lookup for your config file.  \nIt keeps traversing up until it **finds the config file** or **reaches your home directory**.\n\n\u003e Gem's name inspired by [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)\n\n## Installation\n\n```bash\ngem install mysticonfig\n```\n\n## Usage\n\n### Normal\n\n```ruby\nrequire 'mysticonfig'\n\nloader = Mysticonfig::Loader.new 'appname'\nconfig = loader.load # Automatically detect and load config\njson_config = loader.load_json # Only load config from JSON file\nyaml_config = loader.load_yaml # Only load config from YAML file (.yaml or .yml)\n```\n\n### With default config fallback\n\n```ruby\nrequire 'mysticonfig'\n\nDEFAULT_CONFIG = {\n\t'a' =\u003e 'A',\n\t'b' =\u003e 'B',\n\t'c' =\u003e 'C'\n}\n\nloader = Mysticonfig::Loader.new('appname', DEFAULT_CONFIG)\nconfig = loader.load # Automatically detect and load config\njson_config = loader.load_json # Only load config from JSON file\nyaml_config = loader.load_yaml # Only load config from YAML file (.yaml or .yml)\n```\n\n## Documentation\n\nSee https://gluons.github.io/mysticonfig/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fmysticonfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgluons%2Fmysticonfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgluons%2Fmysticonfig/lists"}