Announced on the hub
Validate, format and mask Pakistani CNIC numbers offline, from code or the terminal.
$ npx verify-pak-nic
resolving packages…
✓ ready in 1.2s
Install it with the command shown above.
Import it in your project. Docs are linked from the source.
A tiny dependency-free TypeScript library for Pakistani CNIC numbers. Validate structure, extract province and gender digits, format with dashes and mask for display. Ships as ESM and CJS with a CLI for quick checks.
Validate, format and mask Pakistani CNIC numbers offline, from code or the terminal.