Socket
Socket
Sign inDemoInstall

sgf-gstin-validator

Package Overview
Dependencies
328
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sgf-gstin-validator

Module to validate GSTIN and verify Signed QR of GST eInvoice


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 01 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc