proped 0.0.6

A library for reading properties files.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Example

import proped;

auto loader = createPropertiesLoader();
auto properties = loader("config.json");
properties ~= loader("config-local.yml");


auto host = properties.getOrElse("server.host", "localhost");
auto port = properties.getOrElse("server.port", 8080);


auto serverConfig = properties.sub("server");
if (!serverConfig.isNull)
{
    auto sHost = serverConfig.getOrElse("host", "localhost");
    auto sPort = serverConfig.getOrElse("port", 8080);
}

Authors:Maksim Galanin

Dependencies: none

Versions:
0.0.6 2017-Jun-04
0.0.5 2017-May-17
0.0.4 2017-Apr-24
0.0.3-beta.1 2017-Feb-27
0.0.2 2017-Jan-11
Show all 9 versions
Stats:

statistics are temporarily disabled.