/gstin-validator

Primary LanguageJavaScriptMIT LicenseMIT

GSTIN Validator

  • 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

build coverage npm

Installation

npm install gstin-validator

Use

var validator = require('gstin-validator');
validator.isValidGSTNumber('12AAACI1681G1Z0');
validator.ValidateGSTIN('47AAACI1681G1Z0');
validator.getGSTINInfo('12AAACI1681G1Z0');

Test

npm test
npm run test-coverage