paraguay-validators
Paraguay RUC number and Car Plate validators / Validaciones de numero RUC y Placa de vehículo.
Instalation
With npm
npm i paraguay-validators
Running tests
npm run test
Validations
RUC
Generic RUC validator for Individual Person and Company.
const ParaguayValidators = ;const validator = ; const isValid = validatorRUC; // For Companies and Natural Personsconst companyIsValid = validatorRUC; // Only for Companiesconst personIsValid = validatorRUC; // Only for Natural Persons
Car Plates
Vehicle Plate validator for new Mercosul Plates of Paraguay and old car plates format of Paraguay.
const ParaguayValidators = ;const validator = ; const isValid = validatorPlate; // For old and new formatsconst oldIsValid = validatorPlate; // Only old format.const carIsValid = validatorPlate; // Only new Car Mercosul format of Paraguay.const motoValid = validatorPlate; // Only new Motorcyle Mercosul format of Paraguay.
On Browser
Script Reference
Validations
var validator = ;var rucIsValid = validatorRUC; // For Companies and Natural Personsvar companyRucIsValid = validatorRUC; // Only for Companiesvar personRucIsValid = validatorRUC; // Only for Natural Persons var plateIsValid = validatorPlate; // For old and new formatsvar oldPlateIsValid = validatorPlate; // Only old format.var carPlateIsValid = validatorPlate; // Only new Car Mercosul format of Paraguay.var motoPlateValid = validatorPlate; // Only new Motorcyle Mercosul format of Paraguay.