JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q54154F
  • License MIT

Essential Zod validators for Iranian specific data (National Code, Card Number, Mobile)

Package Exports

  • zod-ir

Readme

Zod Iranian Utils 🇮🇷

A lightweight, TypeScript-first collection of Zod validators for Iranian specific data structures.

Features

  • Melli Code (National ID) validation with official algorithm.
  • 💳 Bank Card validation using Luhn algorithm.
  • 📱 Mobile Number validation (supports +98, 09xx, 9xx).
  • 🌍 Bilingual Error Messages (Persian & English).
  • 🌲 Tree-shakable & Type-safe.

Installation

npm install zod zod-iranian-utils
# or
yarn add zod zod-iranian-utils