Personnummer
Validate Swedish social security numbers.
Installation
The package can be installed
by adding personnummer to your list of dependencies in mix.exs:
def deps do
[
{:personnummer, "~> 0.1.0"}
]
endExample
iex> Personnummer.valid?(6403273813)
true
iex> Personnummer.valid?("19130401+2931")
trueDocumentation
The docs can be found at https://hexdocs.pm/personnummer.