idnumbers
    Preparing search index...

    The Personal ID Number of Croatia. This page is generated from the registry metadata of the library.

    Property Value
    Country code HRV, HR
    ID type Personal ID Number
    Official name Osobni identifikacijski broj (OIB)
    Also known as Personal ID Number; Osobni identifikacijski broj; OIB; PIN
    Display format ###########
    Input masks ###########
    Length 11
    Example 12345678903
    Checksum yes
    Checksum algorithm ISO 7064 MOD 11,10
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('HRV', '12345678903').isValid; // true

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

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

    register(country);
    validateNationalId('HRV', '12345678903').isValid; // true