idnumbers
    Preparing search index...

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

    Property Value
    Country code ZAF, ZA
    ID type National ID Number
    Official name South African Identity Number
    Also known as National ID Number
    Display format YYMMDDSSSSCAZ
    Input masks #############
    Length 13
    Example 8001015009087
    Checksum yes
    Checksum algorithm Luhn (mod 10)
    Parsable yes

    The root entry registers every country:

    import { validateNationalId } from 'idnumbers';

    validateNationalId('ZAF', '8001015009087').isValid; // true

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

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

    register(country);
    validateNationalId('ZAF', '8001015009087').isValid; // true