simple-vdf3
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i simple-vdf3

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

17 kB

Total Files

16

Last publish

Collaborators

  • wavpro