/yaml_incomplete

An elixir yaml writer (not a parser).

Primary LanguageElixir

YamlIncomplete

A very barebone YAML dumper. Not a YAML parser. Converts a data structure to YAML if:

  • no tuples involved;
  • no structs.

Only handles Maps or Lists of Integers, Strings and null.

Usage

iex> YamlIncomplete.to_yaml(%{a: [1, 2]})
---
:a:
- 1
- 2

Installation

If available in Hex, the package can be installed by adding yaml_incomplete to your list of dependencies in mix.exs:

def deps do
  [
    {:yaml_incomplete, "~> 0.1.1"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/yaml_incomplete.