Get a list of banks an account number number likely belongs to, along with their bank codes.
The Central Bank of Nigeria released the guidelines on Nigeria Uniform Bank Account Number(NUBAN) scheme in August, 2010. The proposal contains the algorithm for account number generation, and that is what is implemented in this project.
If you want to see it in action without downloading, please visit repl.it and run index.ts
.
-
Clone this repository
git clone https://github.com/OpesanyaAdebayo/GetBankFromNuban.git
cd GetBankFromNuban
-
Run the application: You can add the following at the bottom of
src/getBanks.ts
console.log(getPossibleBanks('<Any Valid Bank Account Number>'));
then install dependencies:
npm install
and then run
npm start
you should see an array of banks the account number likely belongs to, as well as their bank codes logged to the console.
-
Install dependencies
npm install
-
Run
npm test