0.8.0 • Published 2 years ago

chilean-plate-validator v0.8.0

Weekly downloads
-
License
MIT License
Repository
github
Last release
2 years ago

chilean-plate-validator

Ridiculous badge, I wanted a shield too install size npm version npm downloads Known Vulnerabilities Security Rating Maintainability Rating Code Smells Lines of Code Coverage Technical Debt Quality Gate Status Reliability Rating Duplicated Lines (%) Bugs

Description

This module will help you to verify if a chilean registration plate is valid (doesn't calculate the check digit).

The RegExes built in, follow the chilean civil registration specifications.

«Instructivo para Validación de Patentes - Servicio de Registro Civil e Identificación»

Code Example

Example 1:

import { plateValid } from 'chilean-plate-validator';

plateValid('BBCC12'); // returns true
plateType('BBCC12');  // returns 'NEW_VEHICLE_PLATE'

Example 2:

import { CLPlate } from 'chilean-plate-validator';

const plate = new CLPlate('BBCC12');

plate.valid // returns true
plate.type  // returns 'NEW_VEHICLE_PLATE'

Installation

$ npm i chilean-plate-validator --save

License

MIT License

Author

0.8.0

2 years ago

0.7.6

2 years ago

0.7.0

2 years ago

0.6.7

2 years ago

0.6.5

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago