{"id":22188833,"url":"https://github.com/qwreey/vdf-lua","last_synced_at":"2025-07-26T20:32:16.333Z","repository":{"id":192099281,"uuid":"686058960","full_name":"qwreey/vdf-lua","owner":"qwreey","description":"This is a Lua implementation of [KeyValues](https://developer.valvesoftware.com/wiki/KeyValues) from valvesoftware.","archived":false,"fork":false,"pushed_at":"2024-11-12T18:12:46.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-26T19:40:27.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/qwreey.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":"2023-09-01T16:32:53.000Z","updated_at":"2024-11-12T18:12:50.000Z","dependencies_parsed_at":"2023-11-20T19:46:32.766Z","dependency_job_id":"288e4e3d-5252-4e3e-b313-bf0ce36a2c1b","html_url":"https://github.com/qwreey/vdf-lua","commit_stats":null,"previous_names":["qwreey75/vdf.lua","qwreey/vdf.lua","qwreey/vdf-lua"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fvdf-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fvdf-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fvdf-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qwreey%2Fvdf-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qwreey","download_url":"https://codeload.github.com/qwreey/vdf-lua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227715594,"owners_count":17808733,"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-12-02T11:12:47.661Z","updated_at":"2024-12-02T11:12:48.151Z","avatar_url":"https://github.com/qwreey.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vdf.lua\n\nThis is a Lua implementation of [KeyValues](https://developer.valvesoftware.com/wiki/KeyValues) from valvesoftware.\n\n#include and #base are not supported, this is just basic implementation. (due to lua's filesystem libs are differ for every engines)\n\n# usages\n\n## parse(str:string)\n\nparsing VDF string into lua table structure\n\nPreview:\n```lua\nlocal vdf = require(\"vdf\")\nlocal data = vdf.parse([[\n\"a\"\n{\n  \"key\" \"value\"\n}\n]])\nprint(data.a.key) -- prints 'value'\n```\n\n## stringify(data:table,indent:string?,disableNewline:boolean?)\n\n### param1 data:table\n\nlua table structure which should converted into VDF format\n\n### param2 indent:string? (default: \"  \")\n\nAn indent-based string that is repeated based on its depth.\nIf you don't want to indent, provide a false\n\n## pram3 disableNewline:boolean?\n\nBy default, stringify uses newlines, but if you don't want to, you can disable them by providing true\n\nPreview:\n```lua\nlocal vdf = require(\"vdf\")\nlocal data = { item = { value = \"5000\", element = \"true\" } }\nprint(vdf.stringify(data))\n--[[\nit prints\n\n\"item\"\n{\n  \"value\" \"5000\"\n  \"element\" \"true\"\n}\n]]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fvdf-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqwreey%2Fvdf-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqwreey%2Fvdf-lua/lists"}