Skip to content

Partur-dev/ValveKV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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);