
I built a zero-dependency validation library for every Indian developer
Indian developer building a form has hit the same wall. You need to validate a PAN number. Or an Aadhaar. Or a GSTIN. Or an IFSC code. So you Google it, find a Stack Overflow answer from 2016, copy a regex, and hope it works. There was no clean, trustworthy, zero-dependency JavaScript library that handled all of this in one place. So I built one. Introducing india-validators india-validators is a client-side JavaScript library that validates 9 common Indian document and identifier formats — with proper checksums, not just regex. npm install india-validators Or drop it in directly: <script src= "https://cdn.jsdelivr.net/npm/india-validators/india-validators.js" ></script> No backend. No API calls. No data sent anywhere. Everything runs in the browser. What it validates Validator What it checks aadhaar 12-digit format + Verhoeff checksum pan 10-char format + entity type decode gstin 15-char format + state code + mod-36 checksum ifsc 11-char bank branch code format pincode 6-digit PIN + p
Continue reading on Dev.to Webdev
Opens in a new tab


