https://github.com/personnummer/lua
Validate Swedish personal identity numbers
https://github.com/personnummer/lua
hacktoberfest lua personal-identity-number personnummer social-security-number validation
Last synced: 10 months ago
JSON representation
Validate Swedish personal identity numbers
- Host: GitHub
- URL: https://github.com/personnummer/lua
- Owner: personnummer
- License: mit
- Created: 2020-04-24T08:59:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T06:26:26.000Z (about 3 years ago)
- Last Synced: 2024-05-29T23:36:03.500Z (almost 2 years ago)
- Topics: hacktoberfest, lua, personal-identity-number, personnummer, social-security-number, validation
- Language: Lua
- Homepage: https://luarocks.org/modules/frozzare/personnummer
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# personnummer [](https://github.com/personnummer/lua/actions)
Validate Swedish personal identity numbers. Follows version 3 of the [specification](https://github.com/personnummer/meta#package-specification-v3).
Install the module with npm:
```
luarocks install personnummer
```
## Example
```lua
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