vatcode-validator

1.1.0 • Public • Published

vatcode-validator

This VAT Code Validator checks the syntax of a VAT code. It doesn't make any API calls to check the validity of the code itself, so the package can be useful for on the fly checking of valid VAT code entry on forms etc.

Buy Me A Coffee

Installation

npm install vatcode-validator --save

Example use

var VATValidator = require('vatcode-validator');
 
var vatCode = '';
 
if(VATValidator.isValid(vatCode)) {
  console.log('Code is valid');
} else {
  //not valid :(
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i vatcode-validator

      Weekly Downloads

      568

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      7.9 kB

      Total Files

      6

      Last publish

      Collaborators

      • bluehat