Skip to content

personnummer/js

Folders and files

NameName
Last commit message
Last commit date
Jan 27, 2025
Mar 23, 2023
Jan 29, 2025
Jan 29, 2025
Mar 8, 2023
Mar 13, 2023
Oct 15, 2022
Mar 14, 2024
Jan 29, 2025
Mar 10, 2024
Feb 24, 2025
Feb 24, 2025
Mar 14, 2024
Mar 14, 2024

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