bank-routing-number-validator
v0.0.4
Published
Validates ABA Routing Numbers
Downloads
33,795
Maintainers
Readme
Summary
Validates Bank Routing Numbers
- Checks the first two digits against the allowed ranges
- Run the checksum algorithm on the last digit
See https://en.wikipedia.org/wiki/Routing_transit_number
Install
$ npm install bank-routing-number-validator
Usage
brnv = require('bank-routing-number-validator')
brnv.ABARoutingNumberIsValid('abcdabcde') //false
brnv.ABARoutingNumberIsValid('1234567890') //false
brnv.ABARoutingNumberIsValid('021000021') //true
brnv.ABARoutingNumberIsValid(021000021) //true