Skip to content

personnummer/js

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 NPM Downloads

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