glaml
Glaml is a simple Gleam wrapper around yamerl that enables your app to read YAML.
import glaml
// ...
let assert Ok(doc) = glaml.parse_string("
test: 4
this-is-nil:
jobs:
- being a cat
")
glaml.sugar(doc, "jobs.#0")
// -> Ok(DocNodeStr("being a cat"))
Further documentation can be found at https://hexdocs.pm/glaml.
Instalation
You can add glaml to your project by simply running the command below.
gleam add glaml
Development
./develop.sh # Copy Erlang headers (for lsp)
gleam test # Run the tests