Skip to content

personnummer/js

Repository files navigation

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