UNPKG

card-bin-db

Version:

A fast and lightweight library for querying bank card information (issuer, brand, type, country) based on BIN (Bank Identification Number).

40 lines (36 loc) 1.05 kB
interface BinCheckInfo { bin: string; card_brand: string; card_type: string; card_level: string; bank_name: string; bank_website: string; bank_phone: string; country_name: string; country_code: string; country_iso3: string; currency: string; } declare function getEngineBinCheck(): Promise<Record<string, BinCheckInfo>>; interface BinPstInfo { bin: string; country_iso3: string; bank_name: string; card_level: string; card_brand: string; card_type: string; } declare function getEnginePst(): Promise<Record<string, BinPstInfo>>; type CardBinInfo = { bin: string; card_brand: string; card_type: string; card_level: string; bank_name: string; country_name: string; country_code: string; country_iso3: string; currency: string; }; declare function lookupBin(bin: string, engine?: "pst" | "bincheck"): Promise<CardBinInfo | undefined>; export { type BinCheckInfo, type BinPstInfo, type CardBinInfo, getEngineBinCheck, getEnginePst, lookupBin };