sgf-gstin-validator

2.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i sgf-gstin-validator

Weekly Downloads

3

Version

2.0.3

License

MIT

Unpacked Size

34.4 kB

Total Files

10

Last publish

Collaborators

  • sgftech