toml-temp ~master

D implementation of TOML (temporary)


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:


This package provides sub packages which can be used individually:

toml-temp:json - TOML/JSON conversion

<img align="right" alt="Logo" width="100" src="https://raw.githubusercontent.com/toml-lang/toml/master/logos/toml-100.png">

Implementation of Tom's Obvious, Minimal Language for D, based on TOML 0.5.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-temp:json
Dependencies:
none
Versions:
1.0.1 2022-Jun-21
~master 2022-Jun-21
Show all 2 versions
Download Stats:
  • 1 downloads today

  • 2 downloads this week

  • 2 downloads this month

  • 2 downloads total

Score:
0.4
Short URL:
toml-temp.dub.pm