Comments (5)
Hi Andy
I haven't tested this in the browser yet, but I'm aiming for it to be usable across both browser and headless environments.
Once this library has most of the VocaLink exceptions covered, I'll work on adding support for NPM/Bower and in-browser testing.
What you can do for now is use Browserify's standalone output.
$ npm build
$ browserify build/modcheck.js --standalone Modcheck > build/modcheck_bundle.js
<html>
<head>
<script src="build/modcheck_bundle.js"></script>
</head>
<body>
<script>
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.');
}
</script>
</body>
</html>
Hope that helps.
from modcheck.js.
That is awesome! Thank you :)
from modcheck.js.
Which exceptions are you missing?
from modcheck.js.
If you can let me know what needs doing, I and a couple of colleagues would be interested in seeing if we can help :)
from modcheck.js.
Take a look at the attached PDF (Section 5.2) that documents all of VocaLinks "Exceptions".
These need to be implemented for 100% compatibility, otherwise checks will fail when they should pass. You'll see I've made a start on a couple of them.
Any PRs implementing these exceptions are very welcome!
from modcheck.js.
Related Issues (4)
- Exception 8 HOT 3
- NPM?
- License?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modcheck.js.