here is Idiva!
Описание и применение
Пакет @shivn7h/idiva обеспечивает проверку и разбор индийских идентификаторов с использованием официальных алгоритмов контрольных сумм, устраняя необходимость в разрозненных регулярных выражениях.
Задача
Most Indian document validation libraries rely on guesswork, leading to scattered regex snippets for PAN, GSTIN, Aadhaar, IFSC, etc., which only check format but not correctness.
Результат
The package achieved 424 downloads in less than a week, indicating strong early adoption and addressing the gap of checksum‑based validation for Indian identifiers.
Рабочий процесс
- Install @shivn7h/idiva via npm
- Import the package in the codebase
- Use provided functions to validate Aadhaar, GSTIN, PAN, IFSC, UPI VPAs, and vehicle numbers
- Handle validation results before sending data to downstream services
Доказательства
Most Indian document validation libraries rely on guesswork. If you’ve built fintech apps, onboarding flows, or checkout systems handling Indian user data, you’ve probably seen custom regex snippets scattered across codebases for checking PAN, GSTIN, Aadhaar, or IFSC numbers.
That’s why I created @shivn7h/idiva — a lightweight, zero-dependency npm package designed to validate and parse Indian identity and business identifiers using official checksum algorithms where they exist:
Aadhaar verified against the Verhoeff checksum algorithm.
GSTIN verified against the official Mod-36 checksum
It doesnt replace live government API verification (like UIDAI or GSTN), but it catches malformed or mistyped data immediately at the client or API boundary before hitting downstream services.
- Дата записи: 2026-10-04T13:10:44.577Z