README.md

[![Build Status](https://travis-ci.org/OpenMercure/ExWrapper.svg?branch=master)](https://travis-ci.org/OpenMercure/ExWrapper)
[![Hex Version](https://img.shields.io/hexpm/v/exwrapper.svg)](https://hex.pm/packages/ExWrapper)
[![Hex.pm](https://img.shields.io/hexpm/l/exwrapper.svg?style=plastic)](https://hex.pm/ExWrapper)
![OPen Mercure](https://img.shields.io/badge/OpenMercure-%09%E2%9D%A4-blue.svg?style=plastic)

# ExWrapper

ExWrapper is a light simple wrapper that convert or deconvert (CharList, erlang -> String.h, Elixir) all datastructure recursively, with only two functions (convert, deconvert). It's practice to make wrapper from erlang code.

## Installation

[available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `exwrapper` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [{:exwrapper, "~> 0.2.58"}]
end
```

## Example

```elixir
iex> ExWrapper.convert([{:error, 'hello', "test", {:amazing, 'test'}}])
[{:error, "hello", "test", {:amazing, "test"}}]

iex> ExWrapper.deconvert([{:error, "hello", "test", {:amazing, "test"}}])
[{:error, 'hello', 'test', {:amazing, 'test'}}]
```


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 [https://hexdocs.pm/exwrapper](https://hexdocs.pm/exwrapper).