cnic library

CNIC (Computerized National Identity Card) validation and decoding.

Same as the pakdatakit/cnic entry point of the npm package.

Classes

CNICInfo
Information encoded in a CNIC number. See getCNICInfo.

Enums

Gender
Gender encoded in the last digit of a CNIC.

Functions

getCNICInfo(String cnic) → CNICInfo?
Reads the province of registration and gender encoded in a CNIC.
validateCNIC(String cnic) → bool
Validates a Pakistani CNIC number.