Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brolaugh/personnummer-elixir

Validate Swedish social security numbers
https://github.com/brolaugh/personnummer-elixir

elixir personnummer social-security-number validation

Last synced: 17 days ago
JSON representation

Validate Swedish social security numbers

Awesome Lists containing this project

README

        

# Personnummer
[![hex.pm version](https://img.shields.io/hexpm/v/personnummer.svg)](https://hex.pm/packages/personnummer)[![Build Status](https://travis-ci.org/brolaugh/personnummer-elixir.svg?branch=master)](https://travis-ci.org/brolaugh/personnummer-elixir)[![Coverage Status](https://coveralls.io/repos/github/brolaugh/personnummer-elixir/badge.svg?branch=master)](https://coveralls.io/github/brolaugh/personnummer-elixir?branch=master)[![hex.pm weekly downloads](https://img.shields.io/hexpm/dw/personnummer.svg)](https://hex.pm/packages/personnummer) [![hex.pm downloads](https://img.shields.io/hexpm/dt/personnummer.svg)](https://hex.pm/packages/personnummer)

Validate Swedish social security numbers.

## Installation

The package can be installed
by adding `personnummer` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[
{:personnummer, "~> 0.1.0"}
]
end
```

## Example

```elixir
iex> Personnummer.valid?(6403273813)
true
iex> Personnummer.valid?("19130401+2931")
true
```

## Documentation
The docs can be found at [https://hexdocs.pm/personnummer](https://hexdocs.pm/personnummer).