Skip to content

vinibrsl/mix_bina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages