A Javascript library to check a UK bank account number against a sort code using VocaLink's modulus check.
A passing modulus check does not mean that an account number and sort code exists and is registered to an account holder; it merely confirms the possiblity of an account number being valid for a given sort code.
npm run build
npm test
Basic usage in a node.js script:
var Modcheck = require('modcheck');
var modcheck = new Modcheck('66374958', '08-99-99');
if (modcheck.check()) {
console.log('This account number could potentially be registered to this sort code.');
} else {
console.log('This account number could NOT be registered to this sort code.');
}