Description

A library for reading properties files.

Package Information

Version0.0.4 (2017-Apr-24)
Repository https://github.com/milofon/proped
LicenseBSD
CopyrightCopyright (c) 2015-2016, Milofon Project. All rights reserved.
AuthorsMaksim Galanin
Registered byMilofon Project
Dependencies none

Installation

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

dub.json
dub.sdl

Readme

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)

Available versions

0.0.4 0.0.3-beta.1 0.0.2 0.0.2-beta.3 0.0.2-beta.2 0.0.2-beta.1 ~master