colombia-validators
v1.1.2
Published
Validators for Colombian documents and plates
Downloads
182
Maintainers
Readme
colombia-validators
Colombia NIT/RUT number and Car Plate validators / Validaciones de numero NIT/RUT y Placa de vehículo.
Instalation
With npm
npm i colombia-validators
Running tests
npm run test
Validations
NIT/RUT
Validation for NIT/RUT numbers.
const { ColombiaValidators } = require('colombia-validators');
const validator = new ColombiaValidators();
const isValid = validator.NIT.validate('564823570');
const plateIsValid = validator.Plate.validate('ABC123');
On Browser
Script Reference
<script src="node_modules/colombia-validators/colombia-validators.min.js"></script>
Validations
var validator = new ColombiaValidators();
var nitIsValid = validator.NIT.validate('564823570');
var carPlateIsValid = validator.Plate.validate('ABC123');
var cargoPlateIsValid = validator.Plate.validate('R12345');
var tuktukPlateIsValid = validator.Plate.validate('123ABC');