Skip to content
/ glaml Public

A Gleam wrapper around yamerl that enables your app to read YAML.

License

Notifications You must be signed in to change notification settings

katekyy/glaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glaml

Package Version Hex Docs

Glaml is a simple Gleam wrapper around yamerl that enables your app to read YAML.

import glaml

// ...

let assert Ok([doc]) = glaml.parse_string("
stars: 7
this-is-nil:
jobs:
  - being a cat
")

glaml.select_sugar(glaml.document_root(doc), "jobs.#0")
// -> Ok(NodeStr("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

About

A Gleam wrapper around yamerl that enables your app to read YAML.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •