New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

colombia-validators

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colombia-validators

Validators for Colombian documents and plates

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
107
37.18%
Maintainers
1
Weekly downloads
 
Created
Source

colombia-validators

npm version Build Status

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');

Keywords

validator

FAQs

Package last updated on 22 Jul 2020

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