@swifffi/banks-logo
v1.0.0
Published
White SVG bank logos and bank metadata for Thailand and Singapore.
Maintainers
Readme
@swifffi/banks-logo
White SVG bank logos with associated local bank codes, brand colors, official names, display names, and SWIFT/BIC values.
This package continues the structure of omise/banks-logo and adds Singapore support while remaining compatible with direct asset use.
Coverage
- Thailand: 32 logos in
th/ - Singapore: 11 logos in
sg/ - Metadata:
banks.json
Install
npm install @swifffi/banks-logoUntil the package is published, install from a local archive or repository:
npm install ./swifffi-banks-logo-1.0.0.tgzJavaScript usage
import { banks, getBank, getLogoPath } from '@swifffi/banks-logo';
const dbs = getBank('sg', 'dbs');
// { code: '7171', color: '#ff3333', ... }
const relativeLogoPath = getLogoPath('sg', 'dbs');
// 'sg/dbs.svg'The assets are also exported directly:
import dbsLogoUrl from '@swifffi/banks-logo/sg/dbs.svg';Asset importing depends on SVG support in your bundler. You may also copy th/ and sg/ into a public-assets directory.
JSON shape
{
"sg": {
"dbs": {
"code": "7171",
"color": "#ff3333",
"official_name": "DBS BANK LTD",
"nice_name": "DBS Bank",
"swift_code": "DBSSSGSG"
}
}
}Validation
npm testThis verifies that each JSON entry has a matching SVG and that every SVG has metadata.
Trademark notice
All bank names and logos are trademarks of their respective owners. Inclusion does not imply endorsement. See NOTICE.md.
