Current section
Files
Jump to
Current section
Files
README.md
# tome
[](https://hex.pm/packages/tome)
[](https://tome.hexdocs.pm/)
[](https://github.com/peregrinefinch/tome/actions/workflows/test.yml)
A TOML 1.0 parser for Pooka.
```sh
pooka add tome
```
```pooka
import tome
let assert Ok(config) = tome.parse("answer = 42")
assert tome.get(config, "answer") == Some(tome.TInt(42))
```
Tables retain their written order. Parse failures include a line number. The TOML 1.0 conformance fixtures retain their upstream MIT licence in `test/fixtures/toml/`.
See the [API documentation](https://tome.hexdocs.pm/) for the rest.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).