[](https://travis-ci.org/OpenMercure/ExWrapper)
[](https://hex.pm/packages/ExWrapper)
[](https://hex.pm/ExWrapper)

# 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).