0.0.7 • Published 1 year ago

banklist-ng v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Nigerian Bank List (banklist-ng)

The banklist-ng library provides information about Nigerian banks including the bank's type, NIP code, name, slug, code, USSD, and logo.

Installation

You can install the package via npm:

npm install banklist-ng

Usage

Importing

import { fetchBanks, filterBanksByKeyword } from 'banklist-ng';

// Fetch all banks data
const allBanksData = fetchBanks();
console.log(allBanksData);

// Filter banks by keyword
const keyword = 'Zenith';
const zenithBanks = filterBanksByKeyword(keyword);
console.log(`Banks matching '${keyword}':`, zenithBanks);

Functions

  • fetchBanks(): BankData: Fetches a list of all Nigerian banks with their data.

  • filterBanksByKeyword(keyword: string): BankData: Filters banks based on a given keyword in their name property.

Type Definitions

  • BankInfo: Represents the data structure for information about a bank, including its ID, type, NIP code, name, slug, code, USSD, and logo.

  • BankData: Represents a collection of bank information.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.

GitHub Repository

You can find the source code and contribute to this project on GitHub: Bank List NG on GitHub

0.0.7

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago