personnummer

Validate Swedish personal identity numbers. Follows version 3 of the specification.

Usage no npm install needed!

<script type="module">
  import personnummer from 'https://cdn.skypack.dev/personnummer';
</script>

README

personnummer Build Status

Validate Swedish personal identity numbers. Follows version 3 of the specification.

Install the module with npm:

npm install --save personnummer

Example

const Personnummer = require('personnummer');

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

See test.ts for more examples.

License

MIT