personnummer / lua

Validate Swedish personal identity numbers

Home Page:https://luarocks.org/modules/frozzare/personnummer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

personnummer Build Status

Validate Swedish personal identity numbers. Follows version 3 of the specification.

Install the module with npm:

luarocks install personnummer

Example

local Personnummer = require("personnummer")

Personnummer.valid("198507099805")
-- true

Testing locally with Docker

docker build -t luap .
docker run --rm -it -v $(pwd):/app luap /bin/ash -c "luarocks make && busted spec"

License

MIT

About

Validate Swedish personal identity numbers

https://luarocks.org/modules/frozzare/personnummer

License:MIT License


Languages

Language:Lua 97.0%Language:Dockerfile 3.0%