Popularity
3.8
Declining
Activity
0.0
Stable
16
3
10

Monthly Downloads: 22,344
Programming language: Elixir
License: MIT License
Latest version: v0.3.3

luhn alternatives and similar packages

Based on the "Algorithms and Data structures" category.
Alternatively, view luhn alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of luhn or a related project?

Add another 'Algorithms and Data structures' Package

README

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


*Note that all licence references and agreements mentioned in the luhn README section above are relevant to that project's source code only.