idnumbers
    Preparing search index...

    The National Identity Card of Pakistan. This page is generated from the registry metadata of the library.

    Property Value
    Country code PAK, PK
    ID type National Identity Card
    Official name قومی شناختی کارڈ (CNIC)
    Also known as National ID Card Number; CNIC; NIC; قومی شناختی کارڈ
    Display format #####-#######-#
    Input masks #####-#######-#
    Length 13
    Example 1234567890123
    Checksum no
    Checksum algorithm None (no check digit; final digit encodes gender)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('PAK', '1234567890123').isValid; // true

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

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

    register(country);
    validateNationalId('PAK', '1234567890123').isValid; // true