Popularity
2.1
Stable
Activity
0.0
Stable
10
3
1

Monthly Downloads: 6
Programming language: Elixir
License: MIT License
Tags: Text And Numbers    

ltsvex alternatives and similar packages

Based on the "Text and Numbers" category.
Alternatively, view ltsvex alternatives based on common mentions on social networks and blogs.

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

Add another 'Text and Numbers' Package

README

LTSV - A Pure Elixir LTSV Parser

hex.pm version hex.pm downloads Build Status Coverage Status

A Labeled Tab-separated Values parser implementation in Elixir

What's LTSV?

http://ltsv.org/

Installation

Add :ltsv library to your project's dependencies in mix.exs:

defp deps do
  [
    {:ltsv, "~> 0.1"}
  ]
end

And fetch:

$ mix deps.get

Usage

Parse a ltsv string

iex> LTSV.parse("name:taka\taddress:Seattle\\nname:neko\taddress:near") |> Enum.map(&Dict.to_list/1)
[[{"name", "taka"}, {"address", "Seattle"}], [{"name", "neko"}, {"address", "near"}]]

Dump a list of Dicts into a ltsv string

iex> LTSV.dump [%{"address" => "Seattle", "name" => "taka"}, %{"address" => "Chicago", "name" => "tetsuo"}]
"address:Seattle\tname:taka\naddress:Chicago\tname:tetsuo"

iex> LTSV.dump [%{name: "taka"}]
"name:taka"

Documentation

http://hexdocs.pm/ltsv/

License

Copyright © 2014 Takayuki Matsubara, released under the MIT license.


*Note that all licence references and agreements mentioned in the ltsvex README section above are relevant to that project's source code only.