Skip to content

getCNICInfo

function getCNICInfo(cnic): CNICInfo | null;

Defined in: cnic.ts:63

Reads the province of registration and gender encoded in a CNIC.

Parameter Type Description
cnic string CNIC in any format accepted by validateCNIC

CNICInfo | null

Decoded information, or null if the CNIC is invalid