Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

personnummer/js

Validate Swedish personal identity numbers.

Install the module with npm:

npm install --save personnummer

Example

import Personnummer from 'personnummer';
Personnummer.valid('191212121212')
//=> true

See index.test.ts for more examples.

Options

Option Type Default Description
allowCoordinationNumber bool true Accept coordination numbers
allowInterimNumber bool false Accept interim/T numbers

License

MIT

Sponsor this project

Packages

No packages published

Contributors 10

AltStyle によって変換されたページ (->オリジナル) /