Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
/ gini Public archive

A small and quick INI parser(and stringifier) for Deno

License

Notifications You must be signed in to change notification settings

grian32/gini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gini

A small and quick INI parser & stringifier for Deno.

Support

This implementation supports: non-nested sections & variables with values being strings, booleans, null or numbers.

Example Code

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

About

A small and quick INI parser(and stringifier) for Deno

Resources

License

Stars

Watchers

Forks

Packages

No packages published