js
js copied to clipboard
Validate Swedish personal identity numbers
personnummer

Validate Swedish personal identity numbers. Follows version 3 of the specification.
Install the module with npm:
npm install --save personnummer
Example
import Personnummer from 'personnummer';
Personnummer.valid('198507099805')
//=> true
See test.ts for more examples.
License
MIT