Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 578 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 578 Bytes

personnummer Build Status NPM Downloads

Validate Swedish personal identity numbers.

Install the module with npm:

npm install --save personnummer

Example

import Personnummer from 'personnummer';

Personnummer.valid('191212121212')
//=> true

See test.ts for more examples.

License

MIT