1.0.0 • Published 6 years ago

modcheck v1.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

modcheck.js Build Status

A Javascript library to check a UK bank account number against a sort code using VocaLink's modulus check.

:warning: Warning

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.

Building

npm run build

Testing

npm test

Using

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.');
}

Resources

Other Implementations