Popularity
1.8
Growing
Activity
5.8
Declining
5
3
0

Monthly Downloads: 287
Programming language: Elixir
License: MIT License
Tags: YAML    
Latest version: v1.0.1

ymlr alternatives and similar packages

Based on the "YAML" category.
Alternatively, view ymlr alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ymlr or a related project?

Add another 'YAML' Package

README

ymlr - A YAML Encoder for Elixir

ymlr - A YAML encoder for Elixir.

Build Status Coverage Status Hex.pm Documentation Hex.pm

Installation

The package can be installed by adding ymlr to your list of dependencies in mix.exs:

def deps do
  [
    {:ymlr, "~> 1.0"}
  ]
end

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
    """