UNPKG

indian-financial-utils

Version:

Validate PAN, Aadhaar, GSTIN, IFSC, PIN codes and mobile numbers — essential financial identifiers in India.

8 lines (7 loc) 280 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidGSTIN = isValidGSTIN; function isValidGSTIN(gstin) { const gstinRegex = /^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$/; return gstinRegex.test(gstin.toUpperCase()); }