The Ultimate Zod Utility for Iranian Data
Validation for national code, bank cards, Sheba, bills, license plates, etc. Lightweight • Zero Dependencies • Type-safe.
Installation
Terminal
bash
Why zod-ir?
Building forms for Iranian applications often involves validating specific local data structures. zod-ir seamlessly integrates these validations into Zod.
Comprehensive Form Example
A complete registration form handling auto-fix (Persian digits via preprocessNumber), Mobile, Financial, and Utility validations all in one schema.
comprehensive-schema.ts
typescript
Raw Input
۱۲۳۴۵۶۷۸۹۰
Z
Parsed Data
"1234567890"