IntSupport
An Elixir library that is porting Rail's ActiveSupport numeric and integer core extensions.
Documentation
Documentaiton can be found here.
Installation
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"}
]
endExamples
ordinalize
iex> IntSupport.ordinalize(1)
"1st"
iex> IntSupport.ordinalize(2)
"2nd"to_phone_number
iex> IntSupport.to_phone_number(5551234)
"555-1234"
iex> IntSupport.to_phone_number(1235554444)
"(123) 555-4444"TODO
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