{"id":18604823,"url":"https://github.com/x-rays5/inireader","last_synced_at":"2026-03-05T09:03:35.022Z","repository":{"id":42569899,"uuid":"368576857","full_name":"X-rays5/inireader","owner":"X-rays5","description":"A simple c++17 header only ini parser/writer.","archived":false,"fork":false,"pushed_at":"2025-06-01T01:18:24.000Z","size":156,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-01T11:40:27.453Z","etag":null,"topics":["cpp","cpp17","headeronly","ini","ini-parser","parser"],"latest_commit_sha":null,"homepage":"https://inireader.docsforge.com/","language":"C++","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/X-rays5.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-18T15:17:14.000Z","updated_at":"2025-06-01T01:18:28.000Z","dependencies_parsed_at":"2025-04-12T07:01:24.803Z","dependency_job_id":null,"html_url":"https://github.com/X-rays5/inireader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/X-rays5/inireader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2Finireader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2Finireader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2Finireader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2Finireader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/X-rays5","download_url":"https://codeload.github.com/X-rays5/inireader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/X-rays5%2Finireader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cpp","cpp17","headeronly","ini","ini-parser","parser"],"created_at":"2024-11-07T02:19:05.745Z","updated_at":"2026-03-05T09:03:34.943Z","avatar_url":"https://github.com/X-rays5.png","language":"C++","readme":"# inireader\nA simple c++17 header only ini parser/writer.\n\nFor examples look at the [wiki](https://github.com/X-rays5/inireader/wiki)\n# Basic usage\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003cfstream\u003e\n#include \u003cinireader/inireader.hpp\u003e\n\n/*\nconfig.ini:\n\nfoo=bar\n[Numbers]\nfloat=3.14\n*/\n\nint main() {\n    ini::Parser ini_file;\n    try {\n        ini_file.Parse(\"config.ini\");\n        ini_file.GetRootSection()[\"foo\"] = \"bar\";\n        auto float_val = ini_file[\"Numbers\"][\"float\"].as\u003cfloat\u003e();\n\n        std::cout \u003c\u003c ini_file.GetRootSection()[\"foo\"].as\u003cstd::string\u003e() \u003c\u003c \" \" \u003c\u003c float_val \u003c\u003c \"\\n\";\n\n        ini_file.GetRootSection().Add(\"foo\", \"bar\");\n        ini_file.AddSection(\"Hello World\").Add(\"foo\", \"bar\");\n\n        std::ofstream writer(\"config.ini\");\n        if (writer.is_open())\n            writer \u003c\u003c ini_file.Stringify();\n        writer.close();\n    } catch (std::runtime_error\u0026 e) {\n        std::cerr \u003c\u003c e.what() \u003c\u003c std::endl;\n        return EXIT_FAILURE;\n    }\n\n    return EXIT_SUCCESS;\n}\n```\n# CMake usage\n```cmake\ncmake_minimum_required(VERSION 3.24)\nproject(example)\n\nset(CMAKE_CXX_STANDARD 17)\n\nadd_subdirectory(inireader)\n\nadd_executable(${PROJECT_NAME} main.cpp)\n\n# Include the inireader headers via the cmake INTERFACE library API.\ntarget_link_libraries(${PROJECT_NAME} PRIVATE inireader::inireader)\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-rays5%2Finireader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx-rays5%2Finireader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx-rays5%2Finireader/lists"}