yaml
- Description
- YAML parser for Elisp
- Latest
- yaml-1.0.0.tar (.sig), 2024-Nov-30, 240 KiB
- Maintainer
- Zachary Romero <zkry@posteo.org>
- Website
- https://github.com/zkry/yaml.el
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
yaml.el contains the code for parsing YAML natively in Elisp with no dependencies. The main function to parse YAML provided is `yaml-parse-string'. `yaml-encode' is also provided to encode a Lisp object to YAML. The following are some examples of its usage: (yaml-parse-string "key1: value1\nkey2: value2") (yaml-parse-string "key1: value1\nkey2: value2" :object-type 'alist) (yaml-parse-string "numbers: [1, 2, 3]" :sequence-type 'list) (yaml-encode '((count . 3) (value . 10) (items ("ruby" "diamond"))))