/js

Validate Swedish personal identity numbers

Primary LanguageTypeScriptMIT LicenseMIT

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