dini
is a library written in D Programming Language
that allows you to read and write INI
files.
Why ini
?
INI is widely popular, lightweight key-value text configuration format. While being very simple to learn and edit manually it is also very fast to parse.
In contrast to JSON
, which is also commonly used for configuration purposes, ini
allows to embed comments, while JSON
does not. And as for YAML
, ini
is much more lightweight and simpler. It looks roughly like this:
Features
-
Easy to use
API is fairy simple and straightforward and allows you to lower-level to get more control.
-
Rich support
dini
supports features such as section inheritance or variable lookups. -
Configurable (
>= 2.0.0
)Since
v2.0
you can define custom quotes, comments and use custom type to store values.Also, if you don’t like current model tree, you can write your own eaisly using
INIReader
.