toml-d 0.3.0

A TOML parser for D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

toml.d. A TOML Parser for D

Usage:

import toml.d;

auto config = parse(`
    title = "TOML Example"

    [owner]
    name = "Tom Preston-Werner"
    organization = "GitHub"
    bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
    dob = 1979-05-27T07:32:00Z # First class dates? Why not?

    [database]
    server = "192.168.1.1"
    ports = [ 8001, 8001, 8002 ]
    connection_max = 5000
    enabled = true
    `);

auto title = config["title"].str;
auto db = config["database"]["server"].str;

or

auto config = parseFile("/path/to/toml.conf");

TODO

1) Date support 2) Tables in tables

Authors:
  • Tasos Vogiatzoglou
Dependencies:
pegged
Versions:
0.3.0 2014-Aug-17
~master 2014-Aug-17
~develop 2015-Jun-20
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 453 downloads total

Score:
0.6
Short URL:
toml-d.dub.pm