nap-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

NAP Validator

Build Status

Javascript validator functions for any Bulgarian company registration number and VAT number. This code does not validates that the company actually exists or the codes are assigned to a company. It validates the provided value against the formulas, which are used to generate real company registration and VAT numbers.

All credits goes to VladSun user from this topic: http://www.linux-bg.org/forum/index.php?topic=36320.0

Installation

npm install nap-validator --save

Usage

var validator = require('nap-validator');
validator.isValidEIK('121292046'); // true
validator.isValidVAT('BG121292046'); // true

Tests

npm install
npm run test

Readme

Keywords

Package Sidebar

Install

npm i nap-validator

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

4.71 kB

Total Files

8

Last publish

Collaborators

  • vmanchev