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, the package can be installed
by adding exwrapper to your list of dependencies in mix.exs:
def deps do
[{:exwrapper, "~> 0.2.73"}]
endExample
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 and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/exwrapper.