lanka-validations - v2.1.0
    Preparing search index...

    Interface NicInfo

    Everything decoded from a valid NIC by parseNic.

    interface NicInfo {
        age: number;
        checkDigit: number;
        dayOfYear: number;
        dob: Date;
        dobString: string;
        format: NicFormat;
        gender: Gender;
        isVoter: boolean | null;
        newNic: string;
        nic: string;
        oldNic: string | null;
        serial: string;
        year: number;
    }
    Index
    age: number

    Current age in full years

    checkDigit: number

    Check digit

    dayOfYear: number

    Day of the year (1 - 366)

    dob: Date

    UTC Date of Birth

    dobString: string

    Formatted ISO Date of Birth (YYYY-MM-DD)

    format: NicFormat

    Format of the NIC: 'old' (9 digits + V/X) or 'new' (12 digits)

    gender: Gender

    Gender derived from NIC

    isVoter: boolean | null

    Voting eligibility (true for 'V', false for 'X', null for 12-digit)

    newNic: string

    Standardized 12-digit equivalent

    nic: string

    The standardized NIC string

    oldNic: string | null

    Standardized 9-digit + V equivalent (if year 1900-1999)

    serial: string

    Serial number segment

    year: number

    4-digit birth year