nigerian-banks
v1.1.1
Published
A package to retrieve basic details about Nigerian banks
Downloads
284
Maintainers
Readme
Nigerian Banks Package
A package to retrieve details about Nigerian banks.
Installation
npm install nigerian-banks
yarn add nigerian-banks
pnpm install nigerian-banks
Repository
https://github.com/john9384/nigerian-banks
Usage
Import the NigerianBanks class and create an instance of the class
import { NigerianBanks } from 'nigerian-banks';
const banks = new NigerianBanks();
Retrieving bank details
To retrieve all banks, call the getAllBanks method
banks.getAllBanks()
To get bank details by name, call the getBankByName method
banks.getBankByName('Name of bank')
To get name that matches a pattern,call the getBankByNameMatch method
banks.getBankByNameMatch('Name pattern')
To get name by code, call the getBankByCode method
banks.getBankByCode('Name pattern')