toml 1.0.0-rc.2

D implementation of TOML


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

dub.json
dub.sdl

This package provides sub packages which can be used individually:

toml:json - TOML/JSON conversion

Implementation of Tom's Obvious, Minimal Language for D, based on TOML 0.4.0

Build Status Code Coverage DUB Package DUB Downloads

Usage

import toml;

TOMLDocument doc;

doc = parseTOML("example = 1");
assert(doc["example"].integer == 1);

doc = parseTOML(`
	bool = true
	integer = 42
	floating = 1e2
	string = "string"
`)
assert(doc["bool"] == true);
assert(doc["integer"] == 42);
assert(doc["floating"] == 1e2);
assert(doc["string"] == "string");

// from a file
import std.file : read;
doc = parseTOML(cast(string)read("/path/to/file.toml"));

Conversion

Authors:
  • Kripth
Sub packages:
toml:json
Dependencies:
none
Versions:
1.0.0-rc.2 2018-Feb-16
1.0.0-rc.1 2018-Feb-16
0.4.0-rc.4 2017-Dec-16
0.4.0-rc.3 2017-Jun-09
0.4.0-rc.2 2017-Jun-08
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 14 downloads this week

  • 111 downloads this month

  • 2160 downloads total

Score:
2.0
Short URL:
toml.dub.pm