idnumbers
    Preparing search index...

    The PESEL of Poland. This page is generated from the registry metadata of the library.

    Property Value
    Country code POL, PL
    ID type PESEL
    Official name PESEL
    Also known as PESEL; Powszechny Elektroniczny System Ewidencji LudnoĊ›ci; Universal Electronic System for Registration of the Population
    Display format YYMMDDSSSSC
    Input masks ###########
    Length 11
    Example 80010100000
    Checksum yes
    Checksum algorithm Weighted sum mod 10 (weights 1,3,7,9 repeating)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('POL', '80010100000').isValid; // true

    To bundle only this country, import its definition from idnumbers/countries/pol and pass it to register():

    import { register, validateNationalId } from 'idnumbers/core';
    import { country } from 'idnumbers/countries/pol';

    register(country);
    validateNationalId('POL', '80010100000').isValid; // true