Popularity
4.3
Declining
Activity
7.8
Declining
23
4
11
Monthly Downloads: 86,880
Programming language: Elixir
License: MIT License
Tags:
YAML
Latest version: v2.0.0
ymlr alternatives and similar packages
Based on the "YAML" category.
Alternatively, view ymlr alternatives based on common mentions on social networks and blogs.
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
Promo
www.influxdata.com

Do you think we are missing an alternative of ymlr or a related project?
README
ymlr - A YAML Encoder for Elixir
ymlr - A YAML encoder for Elixir.
Installation
The package can be installed by adding ymlr
to your list of dependencies in mix.exs
:
def deps do
[
{:ymlr, "~> 2.0"}
]
end
Versions and Support
Version 2.0 does not support Elixir 1.10 anymore. However, for now all functionality is backported to version 1.x.
Ymlr Version | Supported Elixir Version |
---|---|
~> 2.0 | ~> 1.11 |
~> 1.0 | ~> 1.10 |
Examples
Encode a single document - optionally with comments:
iex> Ymlr.document!(%{a: 1})
"""
---
a: 1
"""
iex> Ymlr.document!({"comment", %{a: 1}})
"""
---
# comment
a: 1
"""
iex> Ymlr.document!({["comment 1", "comment 2"], %{"a" => "a", "b" => :b, "c" => "true", "d" => "100"}})
"""
---
# comment 1
# comment 2
a: a
b: b
c: 'true'
d: '100'
"""
Encode a multiple documents
iex> Ymlr.documents!([%{a: 1}, %{b: 2}])
"""
---
a: 1
---
b: 2
"""