A small and quick INI parser & stringifier for Deno.
This implementation supports: non-nested sections & variables with values being strings, booleans, null or numbers.
Parsing an ini file:
INI.parse(inistring);
Which will return an object:
{
section1: {
var1: 1,
},
section2: {
var2: true,
var3: "string",
var4: null,
}
}
Stringifying an ini file:
INI.stringify(iniobject);
Which will output a valid ini string:
[section1]
var1=1
[section2]
var2=true
var3="string"
var4=null