-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,44 @@ | ||
# get-canadian-bank-name | ||
# Get Canadian Bank Name | ||
|
||
[![Codacy grade](https://img.shields.io/codacy/grade/c52a29dbdfa54c8b8c0733a0060d079e)](https://app.codacy.com/gh/cityssm/get-canadian-bank-name/dashboard) | ||
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/cityssm/get-canadian-bank-name)](https://codeclimate.com/github/cityssm/get-canadian-bank-name) | ||
[![Code Climate coverage](https://img.shields.io/codeclimate/coverage/cityssm/get-canadian-bank-name)](https://codeclimate.com/github/cityssm/get-canadian-bank-name) | ||
[![AppVeyor](https://img.shields.io/appveyor/build/dangowans/get-canadian-bank-name)](https://ci.appveyor.com/project/dangowans/get-canadian-bank-name) | ||
[![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/cityssm/get-canadian-bank-name)](https://app.snyk.io/org/cityssm/project/b55b9cac-29f7-4a4b-9adc-6b21e61a315b) | ||
|
||
A simple library to translate Canadian bank institution and transit numbers into the corresponding bank names. | ||
|
||
## Installation | ||
|
||
**Coming soon** | ||
```sh | ||
npm install @cityssm/get-canadian-bank-name | ||
``` | ||
|
||
## Usage | ||
|
||
```javascript | ||
getCanadianBankName('001'); | ||
import { getCanadianBankName } from "@cityssm/get-canadian-bank-name"; | ||
|
||
console.log( getCanadianBankName('001') ); | ||
// -> "Bank of Montreal" | ||
|
||
getCanadianBankName('828', '14492'); | ||
console.log( getCanadianBankName('828', '14492') ); | ||
// => "Northern Credit Union" | ||
``` | ||
|
||
## Need More Information? | ||
|
||
This project was made to help validate preauthorized payment data | ||
tracked by the [City of Sault Ste. Marie](https://saultstemarie.ca/). | ||
Included institution numbers were prioritized based on the City's needs. | ||
|
||
Need some additional institution numbers for your uses? | ||
Need to correct a bank name that is spelt incorrectly, or has changed? | ||
[Create an issue](https://github.com/cityssm/get-canadian-bank-name/issues/new) | ||
with your request, or submit a pull request adding them. | ||
|
||
Need more details, like the address of the branch the corresponds to | ||
institution and transit numbers? | ||
[**Payments Canada** maintains a list](https://www.payments.ca/our-directories/financial-institutions-branch-directory) | ||
of all member banks and credit unions, along with their addresses, | ||
that is updated weekly. |