idnumbers
    Preparing search index...

    Class NationalID

    Thailand National Identity Card Number format Format: #-####-#####-##-#

    The first digit represents citizenship type: 0 = Other (not used for Thai nationals) 1 = Thai citizen born after 1984 2 = Thai citizen born after 1984 (late registration) 3 = Thai citizen born before 1984 4 = Thai citizen born before 1984 (late registration) 5 = Thai citizen (special cases) 6 = Foreign resident (temporary or illegal) 7 = Children of foreign residents born in Thailand 8 = Permanent resident or naturalized citizen

    https://en.wikipedia.org/wiki/National_identification_number#Thailand https://thailandformats.com/idcards

    Implements

    Index
    METADATA: IdMetadata = ...
    • Parse Thailand national ID number

      Parameters

      • idNumber: string

      Returns NationalIdParseResult | null

    • Validate the Thailand ID number

      Parameters

      • idNumber: string

      Returns boolean