Skip to content

Validator for the CLABE banking standard for the numbering of bank accounts in Mexico.

License

Notifications You must be signed in to change notification settings

VoxFeed/clabe-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clabe-check

Lightweight validator for the CLABE banking standard for the numbering of bank accounts in Mexico.

Install

npm install --save clabe-check

Usage

  1. Import the module.
  2. Pass any CLABE as string and validate it.
  3. It returns a boolean that indicates whether CLABE is valid or not.

Example:

const clabeCheck = require('clabe-check');

const notAClabe = 'Not even a CLABE';
const notAString = 12345678901234567;
const invalidClabe = '01234567890123456';
const validClabe = '328000921510220225';

console.log(clabeCheck(notAClabe)); // false

console.log(clabeCheck(notAString)); // false

console.log(clabeCheck(invalidClabe)); // false

console.log(clabeCheck(validClabe)); // true

License

MIT

About

Validator for the CLABE banking standard for the numbering of bank accounts in Mexico.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published