We use yarn
as a package manager. Feel free to use npm
instead if you don't have yarn
installed. Npm commands are almost the same:
yarn
= npm i
yarn test
= npm test
yarn build
= npm run build
- Fork Banks DB repository and then clone your fork.
yarn
from your fork's root directory.- (Optional) ensure
yarn test
is passing before making changes. - Create new JSON file in
banks/%country%
folder and call it same as your bank'sname
(lowercase). In case your country folder doesn't exist yet, just add it. Make sure that your bank'scountry
matches with the name of the folder where you put it. - Fill your JSON with this guide:
name
: bank's codename in lowercase (same as your file name)country
: two letters code of bank's country (ISO 3166-1 alpha-2)localTitle
: bank's title in local languageengTitle
: bank's title in Englishurl
: link to official bank's websitecolor
: bank's brand color from official logo or website (HEX, lowercase)defunct
: settrue
for banks with revoked license (optional)prefixes
: array of bank's prefixes (each prefix must contain 5 or 6 digits)
All attributes except defunct
are REQUIRED.
Here's an example:
// banks/my-country/my-bank.json
{
"name": "my-bank",
"country": "ru",
"localTitle": "Мой банк",
"engTitle": "My Bank",
"url": "https://my-bank.com/",
"color": "#000",
"prefixes": [
12345,
123456,
]
}
- Make sure that
yarn test
is still passing. - Submit a pull request.
Don't create or modify index.js
files in banks folders manually — they are generated. Run yarn build
to regenerate them.