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.

latest
npmnpm
Version
1.1.1
Version published
Weekly downloads
337
1.81%
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.

Project status

[!CAUTION] This project has been unmaintained since 2018. You should not use it, and should migrate away from it.

I made this module back in ~2015 to solve a problem my company had at the time. It served it's purpose and still works reasonably well. But I do not use nodejs anymore, and have no intention of publishing any updates in the future.

To prevent supply-chain attacks I will not hand this project over to anyone else.

If you wish to continue the project, please fork it while respecting the copyright notice and license.

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

Keywords

vat

FAQs

Package last updated on 15 Aug 2025

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