1.1.0 • Published 6 years ago

vatcode-validator v1.1.0

Weekly downloads
1,672
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago