idnumbers
    Preparing search index...

    The National Registration Identity Card Number of Malaysia. This page is generated from the registry metadata of the library.

    Property Value
    Country code MYS, MY
    ID type National Registration Identity Card Number
    Official name National Registration Identity Card (NRIC)
    Also known as National Registration Identity Card Number; NRIC
    Display format YYMMDD-PB-###G
    Input masks ######-##-####
    Length 12
    Example 800101011234
    Checksum no
    Checksum algorithm None (date/structure validation only)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('MYS', '800101011234').isValid; // true

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

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

    register(country);
    validateNationalId('MYS', '800101011234').isValid; // true