0 purchases
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.