Giter Club home page Giter Club logo

modcheck.js's Introduction

modcheck.js Build Status

A Javascript library to check a UK bank account number against a sort code using VocaLink's modulus check.

โš ๏ธ Warning

A passing modulus check does not mean that an account number and sort code exists and is registered to an account holder; it merely confirms the possiblity of an account number being valid for a given sort code.

Building

npm run build

Testing

npm test

Using

Basic usage in a node.js script:

var Modcheck = require('modcheck');

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.');
}

Resources

Other Implementations

modcheck.js's People

Contributors

atwright147 avatar liamja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

modcheck.js's Issues

NPM?

Hey there!
Is the module published on npm? Could not find there.

Can this be used directly in the browser?

Hi,

Can this be used directly in the browser?

I have built and browserified the code which successfully brings in the weightTable etc. Can I use this directly in the browser and ideally without require.js etc?

Many thanks,

Andy

P.S. Awesome library.

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.