proped 0.0.7-rc.1

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.7-rc.1 2017-Aug-25
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
Show all 10 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 8 downloads this month

  • 148 downloads total