Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davydog187/tab
Convert nested elixir data into tabular data
https://github.com/davydog187/tab
elixir tabular-data
Last synced: 25 days ago
JSON representation
Convert nested elixir data into tabular data
- Host: GitHub
- URL: https://github.com/davydog187/tab
- Owner: davydog187
- License: apache-2.0
- Created: 2022-08-30T17:23:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-30T18:47:56.000Z (about 2 years ago)
- Last Synced: 2024-09-18T00:41:08.208Z (about 2 months ago)
- Topics: elixir, tabular-data
- Language: Elixir
- Homepage: https://hexdocs.pm/tab/Tab.html
- Size: 17.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# Tab
[![Build Status](https://github.com/bitfo/tab/workflows/CI/badge.svg?branch=main)](https://github.com/bitfo/tab/actions) [![Hex pm](https://img.shields.io/hexpm/v/tab.svg?style=flat)](https://hex.pm/packages/tab) [![Hexdocs.pm](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/tab/)
Tab is a tiny library for converting Elixir terms into tabular data.
iex> Tab.tabulate([%{a: 1, b: 2, c: 3}, %{a: 1, b: 2}])
[
["a", "b", "c"],
[1, 2, 3],
[1, 2, nil]
]Tab also works with nested data
iex> Tab.tabulate([%{a: %{b: 1, c: 2}}])
[
["a.b", "a.c"] ,
[1, 2]
]## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `tab` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:tab, "~> 0.1.0"}
]
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at .