Skip to content

An Elixir library that is porting Rail's ActiveSupport numeric and integer core extensions.

Notifications You must be signed in to change notification settings

AaronCowan/int_support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"}
  ]
end

Examples

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

About

An Elixir library that is porting Rail's ActiveSupport numeric and integer core extensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages