Skip to content
πŸ“œ Libraries to (de)serialize Valve's KeyValue format (VDF) in various languages
Branch: master
Clone or download
Latest commit 0d210ec May 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
javascript bump to v1.1.1 May 18, 2018
.gitignore updated vdf.py Apr 16, 2014
LICENSE added license Apr 19, 2014
README.md package vdf.js for npm; fix #8 Sep 15, 2016
vdf.js chain (merge) kv list with duplicate key; #9 Oct 12, 2016
vdf.php

README.md

KeyValue encoder/decoder for various languages

Format: https://developer.valvesoftware.com/wiki/KeyValues

VDF may contain comments. However, they are not preserved during decoding.

Online (in your browser)

Go to http://rossengeorgiev.github.io/vdf-parser/

Python

Moved to https://github.com/ValvePython/vdf

Install via pypi: pip install vdf

Javascript

Using vdf.js

data = VDF.parse(vdf_text);
vdf_text = VDF.stringify(data);

Or the version on npm (https://www.npmjs.com/package/simple-vdf)

npm install simple-vdf
vdf = require('simple-vdf');
data = vdf.parse(vdf_text);
vdf_text = vdf.stringify(data);

PHP

require_once('vdf.php');

$array = vdf_decode($vdf);
$vdf = vdf_encode($array);
$indented_vdf = vdf_encode($array, true);

License

See license file.

You can’t perform that action at this time.