toml 0.16.0 toml: ^0.16.0 copied to clipboard
Parser and encoder for TOML v1.0.0 (Tom's Obvious, Minimal Language) configuration files.
toml.dart Examples #
This directory contains examples for the usage of the toml.dart
package.
-
./filesystem_config_loader
contains an example for how to load a configuration file in the Dart VM from the local filesystem. -
./filesystem_config_saver
contains an example for how to save a configuration file in the Dart VM to the local filesystem. -
./flutter_example
contains a Flutter example for how to use thetoml.dart
library to decode a TOML document as an asset string. -
./http_config_loader
contains an example for how to load a configuration file in the browser via HTTP. -
./toml_encoder
contains an example for how to use theTomlDocument.fromMap
andTomlDocument.toString
methods to encode aMap
as a TOML document. -
./toml_parser
contains an example for how to use theTomlDocument.parse
andTomlDocument.toMap
methods to decode a TOML document from a string that has been read fromstdin
. -
./toml_to_json
contains an example application for the conversion of TOML documents to JSON.