cedendahlkim/Swedish Personnummer Validator
Validate Swedish personal identity numbers (personnummer) in CI/CD pipelines
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| personnummer | Swedish personal identity number (YYYYMMDD-XXXX or YYMMDD-XXXX) | yes | — |
| allow_coordination | Allow coordination numbers (day offset by 60) | no | false |
| allow_interim | Allow interim/temporary numbers | no | false |
Outputs
| name | description |
|---|---|
| valid | Whether the personnummer is valid (true/false) |
| formatted | Formatted personnummer (YYYYMMDD-XXXX) |
| age | Age in years (empty if date is in the future) |
| gender | male or female based on second-to-last digit |