personnummer
TypeScript icon, indicating that this package has built-in type declarations

3.2.1 • Public • Published

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('198507099805')
//=> true

See test.ts for more examples.

License

MIT

Package Sidebar

Install

npm i personnummer

Weekly Downloads

8,956

Version

3.2.1

License

MIT

Unpacked Size

24.6 kB

Total Files

9

Last publish

Collaborators

  • frozzare
  • johannestegner