validacion-cedula-dominicana
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

validacion-cedula-dominicana

Algoritmo validador de cédula dominicana / Dominican ID validator algorithm

Instalación / Installation

CDN

<script src="https://unpkg.com/validacion-cedula-dominicana/src/index.min.js"></script>

NPM

npm install validacion-cedula-dominicana

Yarn

yarn add validacion-cedula-dominicana

Uso / Usage

import validateDominicanId from 'validacion-cedula-dominicana';
 
/**
 * @param {string} dominicanId 
 * - Cédula dominicana que contenga solo dígitos. No admite guiones ni letras.
 * - Dominican ID that contains only digits. Does not allow hyphens nor letters.
 */
validateDominicanId('00000000000');

Package Sidebar

Install

npm i validacion-cedula-dominicana

Weekly Downloads

4

Version

1.0.9

License

ISC

Unpacked Size

7.71 kB

Total Files

7

Last publish

Collaborators

  • alejandrovilla