Troubleshooting PK Validate
Lightweight format validation for Pakistani identifiers and mobile numbers.
Troubleshooting PK Validate
PK Validate reports structure and formatting. Keep these limitations in mind when interpreting a successful result.
Always import from @silentcoderhi/pk-validate and use the named module APIs (for example cnic.isValid and phone.format). The current package does not export validateCNIC or validateMobile helper names.
A CNIC format check does not verify identity or issuance. Avoid logging CNICs and use cnic.mask for user-facing display where possible.
NTN and postal-code checks cover documented structural formats only; they do not confirm registration or that a postal code exists. IBAN checks do not confirm an account exists or is active.
Mobile numbers support local and international forms with common separators. Normalization and formatting helpers return null for invalid input. No carrier lookup is provided.