0.0.7 • Published 4 years ago

ghana-bank-sort-codes-api v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Ghana Banks Sort Codes/Routing Number API

codecov CircleCI

This library gets all Ghanaian banks sort codes/routing number via web scrapping from The Ghana Interbank Payment and Settlement Systems website.

List Of Ghana Banks included

  • ACCESS BANK
  • ADB BANK
  • APEX RURAL BANK
  • BANK OF AFRICA
  • BANK OF BARODA
  • BANK OF GHANA
  • BARCLAYS BANK
  • BEIGE BANK
  • BSIC GHANA LTD
  • CAL BANK LTD
  • CAPITAL BANK
  • ECOBANK (GH) LTD
  • ENERGY BANK
  • FAB
  • FBN BANK LTD
  • FIDELITY BANK GHANA
  • FIRST NATIONAL BANK
  • GCB BANK LTD
  • GN BANK LTD
  • GUARANTY TRUST BANK
  • HERITAGE BANK
  • NATIONAL INVESTMENT BANK
  • OMNIBANK GHANA LIMITED
  • PREMIUM BANK GHANA LTD
  • PRUDENTIAL BANK LTD
  • REPUBLIC BANK
  • REPUBLIC BANK GH
  • SOCIETE GENERALE GHANA
  • SOVEREIGN BANK LTD
  • STANBIC BANK GHANA LTD
  • STANDARD CHARTERED BANK
  • THE ROYAL BANK
  • UNIBANK GHANA LTD
  • UNICREDIT GHANA LIMITED
  • UNITED BANK FOR AFRICA(GH) LTD
  • UNIVERSAL MERCHANT BANK
  • UT BANK
  • ZENITH BANK (GH) LTD

How to install

npm i -S ghana-bank-sort-codes-api

OR

yarn add ghana-bank-sort-codes-api

Usage

  const { bank } = require('ghana-bank-sort-codes-api');

OR

  import { bank } from 'ghana-bank-sort-codes-api';
Get bank sort codes for a particular bank(fetchBankSortCodes(bankName))
  bank.fetchBankSortCodes('access bank')
    .then(bankData => {
      // This will return an array of objects with all access bank branch names and sort codes
    })
Get bank sort code for a particular bank branch(fetchBankBranchSortCodes(bankName, branchName))
  bank.fetchBankBranchSortCodes('access bank', 'hatso')
    .then(sortCode => {
      console.log(sortCode);
      // will display 280126
    })

License

MIT

0.0.7

4 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago