clabe-check
Lightweight validator for the CLABE banking standard for the numbering of bank accounts in Mexico.
Install
npm install --save clabe-check
Usage
- Import the module.
- Pass any CLABE as string and validate it.
- It returns a
boolean
that indicates whether CLABE is valid or not.
Example:
const clabeCheck = ; const notAClabe = 'Not even a CLABE';const notAString = 12345678901234567;const invalidClabe = '01234567890123456';const validClabe = '328000921510220225'; console; // false console; // false console; // false console; // true
License
MIT