- Validates GSTIN number for length (15 digits), format (State code, PAN, Entity Number, Z, Checksum) and checksum as per the algorithm published at GSTN portal
npm install gstin-validator
var validator = require('gstin-validator');
validator.isValidGSTNumber('12AAACI1681G1Z0');
validator.ValidateGSTIN('47AAACI1681G1Z0');
validator.getGSTINInfo('12AAACI1681G1Z0');
npm test
npm run test-coverage