toml 0.16.0 copy "toml: ^0.16.0" to clipboard
toml: ^0.16.0 copied to clipboard

Parser and encoder for TOML v1.0.0 (Tom's Obvious, Minimal Language) configuration files.

example/README.md

toml.dart Examples #

Example CI

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 the toml.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 the TomlDocument.fromMap and TomlDocument.toString methods to encode a Map as a TOML document.

  • ./toml_parser contains an example for how to use the TomlDocument.parse and TomlDocument.toMap methods to decode a TOML document from a string that has been read from stdin.

  • ./toml_to_json contains an example application for the conversion of TOML documents to JSON.

30
likes
160
pub points
92%
popularity

Publisher

unverified uploader

Parser and encoder for TOML v1.0.0 (Tom's Obvious, Minimal Language) configuration files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, meta, petitparser

More

Packages that depend on toml