Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 526 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 526 Bytes

MarkYamill

A YAML decoder for Elixir.

Get Up And Running

Add it (to mix.exs)

def deps do
  [{:mark_yamill, "~> 0.2.1"}]
end

Start it (in mix.exs)

def application do
  [applications: [:mark_yamill]]
end

Download it

$ mix deps.get

Run it!

$ iex -S mix
iex(1)> yaml = "---\nfoo: bar\nhello: world\n"
"---\nfoo: bar\nhello: world\n"
iex(2)> MarkYamill.decode(yaml)
%{"foo" => "bar", "hello" => "world"}