Coder Social home page Coder Social logo

Comments (5)

liamja avatar liamja commented on June 19, 2024

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.

atwright147 avatar atwright147 commented on June 19, 2024

That is awesome! Thank you :)

from modcheck.js.

atwright147 avatar atwright147 commented on June 19, 2024

Which exceptions are you missing?

from modcheck.js.

atwright147 avatar atwright147 commented on June 19, 2024

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.

liamja avatar liamja commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.