idnumbers
    Preparing search index...

    The NRIC/FIN of Singapore. This page is generated from the registry metadata of the library.

    Property Value
    Country code SGP, SG
    ID type NRIC/FIN
    Official name National Registration Identity Card (NRIC/FIN)
    Also known as NRIC; FIN; National Registration Identity Card; Foreign Identification Number
    Display format L#######C
    Input masks L#######L
    Length 9
    Example S1234567D
    Checksum yes
    Checksum algorithm Weighted sum mod 11 mapped to series-specific check letter (weights 2,7,6,5,4,3,2)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('SGP', 'S1234567D').isValid; // true

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

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

    register(country);
    validateNationalId('SGP', 'S1234567D').isValid; // true