personnummer Build Status

Validate Swedish personal identity numbers.

This package replaces personnummer on pub.dev. Change the dependency and import to personnummer_dart, the API is the same.

Example

import 'package:personnummer_dart/personnummer_dart.dart';

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

See test/personnummer.dart for more examples.

In memoriam

Fredrik "Frozzare" Forsmo (1991-2026) was the initiator, co-founder and a core contributor of the personnummer project. This library carries his work. He is missed.

License

MIT

Libraries

personnummer_dart