identity-number-validator
v1.1.17
Published
Package to validate if an identity number is valid or not
Downloads
245
Maintainers
Readme
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 |