idnumbers
    Preparing search index...

    The National Identification Number of Nigeria. This page is generated from the registry metadata of the library.

    Property Value
    Country code NGA, NG
    ID type National Identification Number
    Official name National Identification Number (NIN)
    Also known as National Identification Number; NIN
    Display format XXXXXXXXXXX
    Input masks ###########
    Length 11
    Example 12345678901
    Checksum no
    Checksum algorithm None (format/length only; no public check digit)
    Parsable no

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('NGA', '12345678901').isValid; // true

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

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

    register(country);
    validateNationalId('NGA', '12345678901').isValid; // true