ec-dni-validator
v2.0.1
Published
A simple validator of Ecuadorian identity card numbers, also called "cédulas" or "RUC".
Downloads
43
Maintainers
Readme
EC DNI Validator
Validate DNI numbers of Ecuadorian citizens.
Validar cédulas de identidad o RUC de Ecuador
Install:
npm i ec-dni-validator
Usage:
Javascript:
const validator = require("ec-dni-validator");
console.log(validator.isValidDNI("0904939055"));
// true or false
Typescript:
// Require type:module in package.json
import { isValidDNI } from "ec-dni-validator";
console.log(isValidDNI("0904939055"));
// true or false