vinibrsl / mix_bina

☎️ Find callers of functions in your Elixir project in compile-time

Home Page:https://hex.pm/packages/mix_bina

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mix_bina

Bina helps you finding all callers of a function in your Elixir project. This is useful while debugging or refactoring. For example:

$ mix bina MyModule.my_fun/1

MyModule.my_fun/1 is called at file_1.ex
MyModule.my_fun/1 is called at file_2.ex
MyModule.my_fun/1 is called at file_3.ex

Bina uses compilation tracers, which allows modules to observe constructs handled by the Elixir compiler when compiling files.

Installation and Usage

The easiest way to add Bina to your project is by using Mix. Add :mix_bina as a dev dependency to your project's mix.exs:

defp deps do
  [
    {:mix_bina, "~> 0.1", only: [:dev], runtime: false}
  ]
end

And run:

$ mix bina MyModule.my_fun/1

Why is it called Bina?

In Portuguese, "bina" is the caller ID phone feature. Bina is actually the abbreviation for "B identifies number of A".

License

Bina is released under the MIT License. See the LICENSE file for further details.

About

☎️ Find callers of functions in your Elixir project in compile-time

https://hex.pm/packages/mix_bina

License:MIT License


Languages

Language:Elixir 100.0%