Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

vatcode-validator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vatcode-validator

Provides offline, fast, robust VAT Code validator. Only checks form, not function.

npmnpm
Version
1.0.3
Version published
Weekly downloads
330
-13.39%
Maintainers
1
Weekly downloads
 
Created
Source

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.

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 :(
}

Todo:

  • Add a function that checks the validity of a code using a VAT checker API as well as the syntax.

Keywords

vat

FAQs

Package last updated on 04 Aug 2016

Did you know?

Socket

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