Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including validacion-cedula-dominicana with all npm packages installed. Try it out:

var validacionCedulaDominicana = require("validacion-cedula-dominicana")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

validacion-cedula-dominicana v1.0.9

Algoritmo validador de cédula dominicana

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');
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free