Validate Swedish personal identity numbers. Follows version 3 of the specification.
Install the module with npm:
luarocks install personnummer
local Personnummer = require("personnummer")
Personnummer.valid("198507099805")
-- truedocker build -t luap .
docker run --rm -it -v $(pwd):/app luap /bin/ash -c "luarocks make && busted spec"
Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the personnummer project. This library carries his work. He is missed.
MIT