Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brolaugh/personnummer-elixir
- Owner: brolaugh
- License: mit
- Created: 2018-11-20T00:46:48.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-01-03T15:37:08.000Z (almost 6 years ago)
- Last Synced: 2024-10-30T00:34:14.499Z (2 months ago)
- Topics: elixir, personnummer, social-security-number, validation
- Language: Elixir
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).