An Elixir library that is porting Rail's ActiveSupport numeric and integer core extensions.
Documentaiton can be found here.
The package can be installed by adding int_support
to your list of dependencies in mix.exs
:
def deps do
[
{:int_support, "~> 0.1.0"}
]
end
iex> IntSupport.ordinalize(1)
"1st"
iex> IntSupport.ordinalize(2)
"2nd"
iex> IntSupport.to_phone_number(5551234)
"555-1234"
iex> IntSupport.to_phone_number(1235554444)
"(123) 555-4444"
Anything found here that could take an elixir integer and return a value.
- bytes
- Change from int_support to generic support module and add float, list, and map ActiveSupport ports