Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 430 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 430 Bytes

ValveKV

TS implementation of Valve Key Value

const src = `
"eto" {
  "fif" {
    "kafif" "1"
  }
  "fif" {
    "envix" "2"
  }
  "vih" {
    "name" {
      "first" "envix"
      "last" "envix"
    }
    "boolka" "true"
    "size" "4" // eto comment
    // "comments" "support"
    // :smirk_cat:
  }
}
`;

const obj = ValveKV.parse(src);
console.log(obj);

const str = ValveKV.stringify(obj, true);
console.log(str);