
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
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
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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.