README.md
# MaxoDecompile
[](https://hex.pm/packages/maxo_decompile)
[](https://hexdocs.pm/maxo_decompile)
[](https://github.com/maxohq/maxo_decompile/actions/workflows/ci.yml)
`MaxoDecompile` is an Elixir / Erlang code decompiler.
This is a modifed and updated version from https://github.com/michalmuskala/decompile.
It has tests and the code is more maintainable.
## Installation
```bash
$ mix archive.install hex maxo_decompile
```
## Usage
```bash
# prints Elixir code to terminal ()
$ mix maxo.decompile MaxoDecompile.Core --to ex
# same as
$ mix maxo.decompile MaxoDecompile.Core --to ex --stdout=true
# prints Erlang code to terminal
$ mix maxo.decompile MaxoDecompile.Core --to erl
# prints ASM code to terminal
$ mix maxo.decompile MaxoDecompile.Core --to asm
```
The docs can be found at <https://hexdocs.pm/maxo_decompile>.
## Alternatives
- https://github.com/hrzndhrn/beam_file (much cleaner code and support for different Elixir versions, recommended!)
- https://github.com/michalmuskala/decompile