Skip to content

DavidArmendariz/identity-number-validator

Repository files navigation

badge

Install

With npm:

npm install identity-number-validator

or with yarn:

yarn add identity-number-validator

Usage

import identityNumberValidator from "identity-number-validator"
// should return true as this is a valid identity number
console.log(identityNumberValidator("0922553508", "EC"))
// should return false as this is an invalid identity number
console.log(identityNumberValidator("123456789", "EC"))

Country Codes supported

Country Code
Ecuador EC

About

This a NPM package that helps to validate identity number for different countries

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published