Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
uk-modulus-checking
Advanced tools
Weekly downloads
Readme
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.
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 6,472 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
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.