{"id":20732183,"url":"https://github.com/shaun-fong/kv-reader","last_synced_at":"2026-02-26T02:15:34.137Z","repository":{"id":261931237,"uuid":"885703794","full_name":"Shaun-Fong/KV-Reader","owner":"Shaun-Fong","description":"Key-Value file reader for unity.","archived":false,"fork":false,"pushed_at":"2024-12-11T12:44:35.000Z","size":75,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T06:34:48.573Z","etag":null,"topics":["data-table","editor","game-development","k-value","unity","unity3d","unity3d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Shaun-Fong.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T06:55:37.000Z","updated_at":"2024-12-11T12:44:39.000Z","dependencies_parsed_at":"2024-12-05T23:34:10.121Z","dependency_job_id":null,"html_url":"https://github.com/Shaun-Fong/KV-Reader","commit_stats":null,"previous_names":["shaun-fong/kv-reader"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Shaun-Fong/KV-Reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaun-Fong%2FKV-Reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaun-Fong%2FKV-Reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaun-Fong%2FKV-Reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaun-Fong%2FKV-Reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shaun-Fong","download_url":"https://codeload.github.com/Shaun-Fong/KV-Reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaun-Fong%2FKV-Reader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262820516,"owners_count":23369645,"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":["data-table","editor","game-development","k-value","unity","unity3d","unity3d-plugin"],"created_at":"2024-11-17T05:18:23.052Z","updated_at":"2026-02-26T02:15:29.102Z","avatar_url":"https://github.com/Shaun-Fong.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ch1 align=\"center\"\u003e\u003cb\u003eKV-Reader\u003c/b\u003e\u003c/h1\u003e\n\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003eKey-Value file reader.\u003c/b\u003e\n\u003cbr\u003e\nThis is a simple key-value structure file parser, which can be used for various purposes, such as configuration files, do whatever you want.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/4194df4d-805c-434e-9a7b-b1b1d86714ad\"\u003e\n\u003c/p\u003e\n\n# Install\nFor Unity, download package from [here](https://github.com/Shaun-Fong/KV-Reader/releases/latest/download/com.shaunfong.kvreader.unitypackage).\n\nFor Dll, download from [here](https://github.com/Shaun-Fong/KV-Reader/releases/latest/download/ShaunFong.KVReader.dll).\n\n# K-V File\n\nThe typical K-V file is as follows:\n\n```\n// Comment line1\n// Comment line2\n// Comment line3\n\nKEY          VALUE1\nKEY1         VALUE2\n```\n\nThis tiny library can parse almost any file :\n\n![image](https://github.com/user-attachments/assets/e21f8b58-6624-4b88-9f17-2cfd9183a4ef)\n\n![image](https://github.com/user-attachments/assets/0c24fe55-6bb6-4418-a07e-0f1f55d6c07d)\n\n\n# Usage\n\nOpen `KV Reader` Tool by clicking `Tools/KV Reader`\n\n![image](https://github.com/user-attachments/assets/11567ebe-f3f5-4e98-a90b-d5ef9d8b3c96)\n\n\n``` C#\n// Reader Parse\nReader reader = new Reader();\n\n// Parse\nreader.ParseFromString(File.text);\n\n// Print\nConsole.WriteLine(reader[\"KEY\"][0]);\n```\n\n``` C#\nstring test = @\"\n// Comment\nKEY1 VALUE1\nKEY2 VALUE2\n\";\n\n// Parse\nvar data = Reader.ParseDocumentFromString(test, out List\u003cstring\u003e headComments);\n\n// Read\nConsole.WriteLine(data[1].Key + \" \" + data[1].Value);\n\n// Change Value\ndata[1].Key = \"KEY_CHANGE\";\ndata[1].Value = \"VALUE_CHANGE\";\n\n// Format\nvar result = Reader.FormatDocumentToString(data, headComments);\n\n// Print Result\nConsole.WriteLine(result);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaun-fong%2Fkv-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaun-fong%2Fkv-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaun-fong%2Fkv-reader/lists"}