{"id":28430680,"url":"https://github.com/mann-conomy/vdf-utils","last_synced_at":"2026-02-28T13:32:08.454Z","repository":{"id":288392932,"uuid":"886157202","full_name":"Mann-Conomy/vdf-utils","owner":"Mann-Conomy","description":"A Node.js utility library for parsing and converting objects in Valve's Data File (VDF) format.","archived":false,"fork":false,"pushed_at":"2025-09-03T16:22:30.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T16:11:23.962Z","etag":null,"topics":["format","mann-conomy","nodejs","parser","steam","typescript","valve","vdf"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@mann-conomy/vdf-utils","language":"TypeScript","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/Mann-Conomy.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":"2024-11-10T11:04:23.000Z","updated_at":"2025-09-03T16:22:34.000Z","dependencies_parsed_at":"2025-04-20T07:33:16.238Z","dependency_job_id":null,"html_url":"https://github.com/Mann-Conomy/vdf-utils","commit_stats":null,"previous_names":["mann-conomy/vdf-utils"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Mann-Conomy/vdf-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Fvdf-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Fvdf-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Fvdf-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Fvdf-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mann-Conomy","download_url":"https://codeload.github.com/Mann-Conomy/vdf-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mann-Conomy%2Fvdf-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29935363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:16:57.922Z","status":"ssl_error","status_checked_at":"2026-02-28T13:11:15.149Z","response_time":90,"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":["format","mann-conomy","nodejs","parser","steam","typescript","valve","vdf"],"created_at":"2025-06-05T14:07:47.674Z","updated_at":"2026-02-28T13:32:08.432Z","avatar_url":"https://github.com/Mann-Conomy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vdf-utils\n\nA Node.js utility library for parsing and converting objects in Valve's Data File (VDF) format.\n\n[![npm version](https://img.shields.io/npm/v/@mann-conomy/vdf-utils?style=flat-square\u0026logo=npm)](https://npmjs.com/package/@mann-conomy/vdf-utils)\n[![npm downloads](https://img.shields.io/npm/d18m/@mann-conomy/vdf-utils?style=flat-square\u0026logo=npm)](https://npmjs.com/package/@mann-conomy/vdf-utils)\n[![Node.js version](https://img.shields.io/node/v/@mann-conomy/vdf-utils?style=flat-square\u0026logo=nodedotjs)](https://nodejs.org/en/about/releases/)\n[![GitHub actions](https://img.shields.io/github/actions/workflow/status/Mann-Conomy/vdf-utils/test.yml?branch=main\u0026style=flat-square\u0026logo=github\u0026label=test)](https://github.com/Mann-Conomy/vdf-utils/blob/main/.github/workflows/test.yml)\n[![GitHub license](https://img.shields.io/github/license/Mann-Conomy/vdf-utils?style=flat-square\u0026logo=github)](https://github.com/Mann-Conomy/vdf-utils/blob/main/LICENSE)\n\n## Installation\n\nUsing [npm](https://www.npmjs.com/package/@mann-conomy/vdf-utils):\n\n```bashf\n$ npm install @mann-conomy/vdf-utils\n```\n\nUsing [yarn](https://yarnpkg.com/package/@mann-conomy/vdf-utils):\n\n```bash\n$ yarn add @mann-conomy/vdf-utils\n```\n\n## Testing\n\nUsing [npm](https://docs.npmjs.com/cli/v8/commands/npm-run-script):\n```bash\n$ npm test\n```\n\nUsing [yarn](https://classic.yarnpkg.com/lang/en/docs/cli/run/):\n```bash\n$ yarn test\n```\n\n## Examples\n\nParsing item schemas from Team Fortress 2 into JavaScript objects.\n\n```js\nimport { readFile } from \"fs/promises\";\nimport { VDF } from \"@mann-conomy/vdf-utils\";\nimport type { ItemSchema } from \"@mann-conomy/tf-schema\";\n\n(async () =\u003e {\n    try {\n        // Fetch the item schema from the Steam Web API\n        const response = await fetch(\"https://media.steampowered.com/apps/440/scripts/items/items_game.bdc614ad776fb2d43c1f247fce870485d2299152.txt\");\n        const file = await response.text();\n\n        // Parse the result into an ItemSchema object\n        const { items_game } = VDF.parse\u003cItemSchema\u003e(file);\n\n        console.log(items_game.qualities.vintage.value); // 3\n        console.log(items_game.qualities.strange.value); // 11\n    } catch (error) {\n        console.error(\"Error parsing item schema\", error.message);\n    }\n})();\n```\n\nConverting JavaScript objects into VDF-formatted strings.\n\n```js\nimport { VDF } from \"@mann-conomy/vdf-utils\";\n\nconst countries = {\n    lang: {\n        Language: \"english\",\n        Tokens: {\n            Steam_Country_US: \"United States\",\n            Steam_Country_AU: \"Australia\"\n            Steam_Country_GB: \"United Kingdom\"\n        }\n    }\n}\n\ntry {\n    const result = VDF.stringify(countries);\n\n    console.log(result)\n    /**\n     * \"lang\"\n     * {\n     *      \"Language\"\t\"english\"\n     *      \"Tokens\"\n     *      {\n     *          \"Steam_Country_US\"\t\t\"United States\"\t\t\t\t\t\t\n     *          \"Steam_Country_AU\"\t\t\"Australia\"\t\t\t\t\n     *          \"Steam_Country_GB\"\t\t\"United Kingdom\"\t\t\t\n     *      }\n     *  }\n     */\n} catch (error) {\n    console.error(\"Error converting countries to VDF\", error.message);\n}\n```\n\nSome more examples are available in the [examples](https://github.com/Mann-Conomy/vdf-utils/tree/main/examples) and [test](https://github.com/Mann-Conomy/vdf-utils/tree/main/test) directories.\n\n## Documentation\n\nSee the [Wiki pages](https://github.com/Mann-Conomy/vdf-utils/wiki) for further documentation.\n\n## License\n\n[MIT](LICENSE)\n\nCopyright 2025, The Mann-Conomy Project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmann-conomy%2Fvdf-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmann-conomy%2Fvdf-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmann-conomy%2Fvdf-utils/lists"}