2.0.3 • Published 2 years ago

sgf-gstin-validator v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
  • Verifies Signed QR of eInvoices and returns invoice data of both signed QR of e-invoice as well as signed e-invoice data.

build coverage npm Codacy Badge Gitpod ready-to-code

Installation

  npm install gstin-validator

Use

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

Test

  npm test
  npm run test-coverage
1.0.8

2 years ago

1.0.7

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago