
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
uk-modulus-checking
Advanced tools
Validate a UK bank account number against a sort code using the VocaLink modulus check
Modulus checking allows payment originators to confirm that customer codes and account numbers are compatible before submitting a Bacs Direct Credit of Direct Debit.
Install the package via npm:
npm install uk-modulus-checking --save
new UkModulusChecking({ accountNumber, sortCode }).isValid()This method validates if the given accountNumber and sortCode represent a valid Faster Payment Account.
accountNumber (string): The account number to validate.sortCode (string): The sort code to validate.(boolean): Returns true if the account is valid.
new UkModulusChecking({ accountNumber: '15764273', sortCode: '938063' }).isValid();
// => false
new UkModulusChecking({ accountNumber: '66374958', sortCode: '089999' }).isValid();
// => true
new UkModulusChecking({ accountNumber: '66374958', sortCode: '08-99-99' }).isValid();
// => true
new UkModulusChecking({ accountNumber: '66374958', sortCode: '08-9999' }).isValid();
// => true
npm test
npm version [<newversion> | major | minor | patch] -m "Release %s"
MIT
Many thanks to bazerk/uk-modulus-checking for the original inspiration.
0.1.4 (2020-12-11)
Merged pull requests:
FAQs
Validate a UK bank account number against a sort code using the VocaLink modulus check
The npm package uk-modulus-checking receives a total of 7,506 weekly downloads. As such, uk-modulus-checking popularity was classified as popular.
We found that uk-modulus-checking demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.