{"library":"banks-db","type":"library","category":null,"description":"The `banks-db` library provides a client-side database of bank identification numbers (BINs) to retrieve bank names and associated brand colors based on a bankcard prefix. Its primary function is to enhance user experience on billing pages, for example, by dynamically displaying a bank's logo or changing background colors as a user types their card number. It is crucial to understand that this database is community-driven and explicitly warns against its use for any billing logic, fraud detection, or security-sensitive operations due to potential inaccuracies or incompleteness. The current stable version is 0.23.0, and the package maintains a relatively active release cadence, with minor version updates typically occurring every few weeks to months, often reflecting database updates or small feature enhancements. A key differentiator is its dual approach: offering a comprehensive global dataset through the main export, alongside the ability to selectively load country-specific data for optimized bundle sizes, with direct integration examples for PostCSS and CSS-in-JS environments.","language":"javascript","status":"active","version":"0.23.0","tags":["javascript","bankcard","bin","bank","card","color","database","db"],"last_verified":"Wed May 27","install":[{"cmd":"npm install banks-db","imports":["import banksDB from 'banks-db';","import banksDB from 'banks-db';\nconst allBanksData = banksDB.data;","import banksDBCore from 'banks-db/core';","import banksOfRussia from 'banks-db/banks/ru';\nconst banksOfChina = require('banks-db/banks/cn');"]},{"cmd":"yarn add banks-db","imports":[]},{"cmd":"pnpm add banks-db","imports":[]}],"homepage":null,"github":"https://github.com/ramoona/banks-db","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/banks-db","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/banks-db/compatibility"}}