idnumbers
    Preparing search index...

    The National ID Number of Indonesia. This page is generated from the registry metadata of the library.

    Property Value
    Country code IDN, ID
    ID type National ID Number
    Official name Nomor Induk Kependudukan (NIK)
    Also known as ID Number; NIK; Nomor Induk Kependudukan
    Display format PPPPPPDDMMYYSSSS
    Input masks ################
    Length 16
    Example 1101010101900001
    Checksum no
    Checksum algorithm None (district/date structure only)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('IDN', '1101010101900001').isValid; // true

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

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

    register(country);
    validateNationalId('IDN', '1101010101900001').isValid; // true