bank-routing-number-validator

0.0.4 • Public • Published

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
 

Package Sidebar

Install

npm i bank-routing-number-validator

Weekly Downloads

4,110

Version

0.0.4

License

MIT

Last publish

Collaborators

  • drshaffopolis