Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - ma2gedev/luhn_ex: Luhn algorithm in Elixir

Luhn algorithm in Elixir. Contribute to ma2gedev/luhn_ex development by creating an account on GitHub.

Visit SiteGitHub - ma2gedev/luhn_ex: Luhn algorithm in Elixir

GitHub - ma2gedev/luhn_ex: Luhn algorithm in Elixir

Luhn algorithm in Elixir. Contribute to ma2gedev/luhn_ex development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

Luhn algorithm in Elixir

hex.pm version hex.pm daily downloads hex.pm weekly downloads hex.pm downloads Build Status

Validate Luhn number.

Installation

# mix.exs
defp deps do
  [
    {:luhn, "~> 0.3.0"}
  ]
end

and fetch

$ mix deps.get

How to use

# validate number
Luhn.valid? "378282246310005"
# => true

# Integer type number
Luhn.valid? 378282246310005
# => true

Benchmarking

$ MIX_ENV=bench mix deps.get
$ MIX_ENV=bench mix compile
$ mix bench

Author

Takayuki Matsubara (@ma2ge on twitter)

LICENSE

MIT

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.