here is Idiva!
说明与用途
@shivn7h/idiva npm 包使用官方校验算法验证和解析印度身份和商业标识符,取代分散的正则表达式,及早捕获错误数据。
问题
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