vdf

Creator: coderz1093

Last updated:

0 purchases

vdf Image
vdf Images
Add to Cart

Description:

vdf

An encoder and decoder for Valve's KeyValue format (VDF).
Usage #
A VdfCodec encodes input json using Valve's KeyValue format (VDF) and decodes KeyValue string to json.
The vdf is the default implementation of VdfCodec.
Example:
var encoded = vdf.encode({"sampleData":{"foo":"bar"}});

var decoded = vdf.decode(r'''
"sampleData"
{
"foo" "bar"
}
''');
copied to clipboard
You can use shorthands vdfEncode and vdfDecode. Useful if a local variable shadows the global vdf constant:
var encoded = vdfEncode({"sampleData":{"foo":"bar"}});

var decoded = vdfDecode(r'''
"sampleData"
{
"foo" "bar"
}
''');
copied to clipboard
For more information, see also VdfEncoder and VdfDecoder.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.