simple-vdf3
v1.1.0
Published
A Simple library for Text-based VDF (Valve Data Format) (de)serialization.
Downloads
24
Readme
simple-vdf3
A Simple library for Text-based VDF (Valve Data Format) (de)serialization.
Based on Tom Shaver's simple-vdf2, which in turn is based on Rossen Georgiev's simple-vdf.
Installing
Requires a minimum version of Node v13.2.0
NPM:
npm install simple-vdf3
Yarn:
yarn add simple-vdf3
Example
import { parse, stringify } from 'simple-vdf3';
console.log(stringify(parse("VDF_CONTENT"), true))
Methods
parse(string)
Parse a string containing VDF and returns an object
stringify(obj) / dump(obj)
Serializes an object to a string of VDF