nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Singapore (SG) identity / tax document.

      Parameters

      • code: "SG_NRIC" | "SG_FIN" | "SG_UEN" | ShortCode

        Fully-qualified (SG_NRIC) or short (NRIC).

      • input: string

        Raw document string (separators tolerated).

      Returns boolean