Skip to content

personnummer/lua

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

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