{"id":39625313,"url":"https://github.com/ttldtor/config","last_synced_at":"2026-01-18T08:34:52.020Z","repository":{"id":318078680,"uuid":"1069864182","full_name":"ttldtor/config","owner":"ttldtor","description":"Library for configuring applications.","archived":false,"fork":false,"pushed_at":"2025-10-04T22:27:53.000Z","size":10,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"default","last_synced_at":"2025-10-05T00:19:57.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ttldtor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-04T19:16:26.000Z","updated_at":"2025-10-04T22:26:28.000Z","dependencies_parsed_at":"2025-10-05T00:19:58.815Z","dependency_job_id":"14dbc542-98ab-49bb-a6bf-14db57595bb8","html_url":"https://github.com/ttldtor/config","commit_stats":null,"previous_names":["ttldtor/config"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ttldtor/config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttldtor","download_url":"https://codeload.github.com/ttldtor/config/tar.gz/refs/heads/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttldtor%2Fconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-01-18T08:34:51.915Z","updated_at":"2026-01-18T08:34:52.010Z","avatar_url":"https://github.com/ttldtor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# config\nLibrary for configuring applications.\n\n![](https://img.shields.io/badge/C++%20standard-C++20-blueviolet)\n[![Release](https://img.shields.io/github/v/release/ttldtor/config)](https://github.com/ttldtor/config/releases/latest)\n[![License](https://img.shields.io/badge/license-BSL--1.0-orange)](https://github.com/ttldtor/config/blob/default/LICENSE.txt)\n\n## Examples of usage\n\n### CMake\n\n```cmake\ncmake_minimum_required(VERSION 3.16)\nproject(test_config LANGUAGES CXX)\n\ninclude(FetchContent)\nFetchContent_Declare(\n        config\n        GIT_REPOSITORY https://github.com/ttldtor/config.git\n        GIT_TAG v1.0.3\n)\nFetchContent_MakeAvailable(config)\n\nadd_executable(${PROJECT_NAME} src/main.cpp)\ntarget_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE config)\n```\n\n### Code\n\n```c++\n#include \u003ciostream\u003e\n#include \u003cconfig/config.hpp\u003e\n\nusing namespace org::ttldtor::config;\n\n// set MY_PREFIX_user=test\n\nint main() {\n  Config config{};\n\n  config.addSource(IniSource::fromString(R\"(\"\nuser=demo\npassword=demo\n  \")\"));\n\n  for (const auto\u0026 [key, value] : config) {\n    std::cout \u003c\u003c key \u003c\u003c \" = \" \u003c\u003c value \u003c\u003c '\\n';\n  }\n  \n// user = demo\n// password = demo  \n\n  config.addSource(EnvSource(\"MY_PREFIX_\"));\n\n  for (const auto\u0026 [key, value] : config) {\n    std::cout \u003c\u003c key \u003c\u003c \" = \" \u003c\u003c value \u003c\u003c '\\n';\n  }\n  \n// user = test\n// password = demo  \n\n  return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttldtor%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttldtor%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttldtor%2Fconfig/lists"}