{"_id":"@algora-ventures/bin-lookup","_rev":"8-161b8337932400f8f2bb16015000f713","name":"@algora-ventures/bin-lookup","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.1":{"name":"@algora-ventures/bin-lookup","version":"1.0.1","author":{"name":"damiano216"},"license":"ISC","_id":"@algora-ventures/bin-lookup@1.0.1","maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"dist":{"shasum":"11300f5de3ad0f224ae12656047581ddffe0bd28","tarball":"https://registry.npmjs.org/@algora-ventures/bin-lookup/-/bin-lookup-1.0.1.tgz","fileCount":9,"integrity":"sha512-l1byhNvdwWHX2PGq681PUtReLbl7SzamM4ZBgoOaDCPoYRzu8TB0XthBw/vx2m1/0BljKjyw7NLXq/7+3NT27A==","signatures":[{"sig":"MEUCIEr7/SMDJaxSBXvEMFlHZhEgz8CGRICbM18nScRlzYKbAiEAnqkwXEjPLu3pl5bxLlIrBk123rLfq9cYt7wlKpvN5M4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27625234},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"7e6b84f3a804cf1dab54559fb40532e11b0875b7","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"algora-ventures","email":"damiano.caffa@gmail.com"},"_npmVersion":"11.6.2","description":"SDK for multiple projects","directories":{},"_nodeVersion":"24.13.0","dependencies":{"papaparse":"^5.5.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.3.0","@types/papaparse":"^5.5.2"},"_npmOperationalInternal":{"tmp":"tmp/bin-lookup_1.0.1_1773006854402_0.27209108515476377","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@algora-ventures/bin-lookup","version":"1.0.2","author":{"name":"damiano216"},"license":"ISC","_id":"@algora-ventures/bin-lookup@1.0.2","maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"dist":{"shasum":"57586575f466f9fffdff9a3f964734da4e7cb2eb","tarball":"https://registry.npmjs.org/@algora-ventures/bin-lookup/-/bin-lookup-1.0.2.tgz","fileCount":9,"integrity":"sha512-s+FeMnEa4TVC7QKAD9du6yxmpvpD6PPENVjKik2hNjqgo0iGMknxGfFtyX7cRwvMWB4wcUarkjYCcFN0yCOQ1w==","signatures":[{"sig":"MEUCIQDjrKzc4T+v+eGRClfn0rWN4WtWG1CnY9Vq6lw8xspphwIgS6LWwaAIq7YfuhO/Ki7vWMWrCmfLq1Rq7NF3gJxMK0Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27626703},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"8409a6c7b4cb77961843bf5cb6e5f45df400ae41","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"algora-ventures","email":"damiano.caffa@gmail.com"},"_npmVersion":"11.6.2","description":"SDK for multiple projects","directories":{},"_nodeVersion":"24.13.0","dependencies":{"papaparse":"^5.5.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.3.0","@types/papaparse":"^5.5.2"},"_npmOperationalInternal":{"tmp":"tmp/bin-lookup_1.0.2_1773050035520_0.9442930968368706","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@algora-ventures/bin-lookup","version":"1.0.3","author":{"name":"damiano216"},"license":"ISC","_id":"@algora-ventures/bin-lookup@1.0.3","maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"dist":{"shasum":"0874755dddba4ad14507b3449ef0b536b4713c19","tarball":"https://registry.npmjs.org/@algora-ventures/bin-lookup/-/bin-lookup-1.0.3.tgz","fileCount":9,"integrity":"sha512-9/GzBMm4hxEnKlYLJgTRDkmyhOjIFXL+TC0zka93wk5J/2YxD5evqBWL1AgPMJNurCuLi3Yla6Ujl9mwu3IQtA==","signatures":[{"sig":"MEQCIBeS0Spo0flsdbPBqXT7W0g9CGCbW0Sv7JG/4ge4vuLdAiA/SbWN8vNC1TQ3KvboLz34uMGCKoRn9Ipvj7QQrzSKXA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27626703},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"1d3be98d842bd2458f93cdffa839dddd8f6e599c","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"algora-ventures","email":"damiano.caffa@gmail.com"},"_npmVersion":"11.6.2","description":"SDK for multiple projects","directories":{},"_nodeVersion":"24.13.0","dependencies":{"papaparse":"^5.5.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.3.0","@types/papaparse":"^5.5.2"},"_npmOperationalInternal":{"tmp":"tmp/bin-lookup_1.0.3_1773050096789_0.8841355394021335","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@algora-ventures/bin-lookup","version":"1.0.5","author":{"name":"damiano216"},"license":"ISC","_id":"@algora-ventures/bin-lookup@1.0.5","maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"dist":{"shasum":"9e3de119d1240e7ac28793add98dc2d7b7e1f5b4","tarball":"https://registry.npmjs.org/@algora-ventures/bin-lookup/-/bin-lookup-1.0.5.tgz","fileCount":9,"integrity":"sha512-cJaVNF/kz1F2RA20YRytrJtGwsHhb9MDYSM7UYZbvpr4R3PrFIVFYu1Nm0eix0eWYNH995/CHupCw9ZoKa8dsg==","signatures":[{"sig":"MEYCIQCRHgtr275dyrdAn9Y7aHkBEqS3BWpvyNNOBqreySKpGQIhAPQYk+ugWyUoCxN6RX5gedCx477t+2WGK2IIKWxgyQFF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27626846},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"9db7c6ad3e179c802cea67ff0db3dc5e03c81901","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsup"},"_npmUser":{"name":"algora-ventures","email":"damiano.caffa@gmail.com"},"_npmVersion":"11.6.2","description":"SDK for multiple projects","directories":{},"_nodeVersion":"24.13.0","dependencies":{"papaparse":"^5.5.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","ts-node":"^10.9.2","typescript":"^5.9.3","@types/node":"^25.3.0","@types/papaparse":"^5.5.2"},"_npmOperationalInternal":{"tmp":"tmp/bin-lookup_1.0.5_1773050810834_0.48646971838004904","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@algora-ventures/bin-lookup","version":"1.0.6","description":"SDK for multiple projects","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"damiano216"},"license":"ISC","dependencies":{"papaparse":"^5.5.3"},"devDependencies":{"@types/node":"^25.3.0","@types/papaparse":"^5.5.2","ts-node":"^10.9.2","tsup":"^8.5.1","typescript":"^5.9.3"},"gitHead":"16b7198b179bd2ee5db4cb6fbb75f6951036eacd","_id":"@algora-ventures/bin-lookup@1.0.6","_nodeVersion":"24.13.0","_npmVersion":"11.11.1","dist":{"integrity":"sha512-z1cbY7rLkRtPveUh1jN0UpZ7jf3noVnIUMNQIfyFTPNgXQFj0jjGDoS4GBzX1TcR+Y7YEZY2rSeJQm7W1LysQA==","shasum":"cf5b8a2f6cf2c00051e2a0f75006bd222cd506ac","tarball":"https://registry.npmjs.org/@algora-ventures/bin-lookup/-/bin-lookup-1.0.6.tgz","fileCount":9,"unpackedSize":27626672,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH80j6Z5pRTjgWBfNmOgXuo0MNdJbFb4LiQhBkcidssPAiBHRbMruZeKNpGaqRjrY5Wz3zYQNWFnvRfsKn9Q2McPXA=="}]},"_npmUser":{"name":"algora-ventures","email":"damiano.caffa@gmail.com"},"directories":{},"maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bin-lookup_1.0.6_1788596942353_0.768477196376719"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-08T21:54:14.401Z","modified":"2026-09-05T08:29:02.721Z","1.0.0":"2026-03-08T21:36:33.994Z","1.0.1":"2026-03-08T21:54:14.721Z","1.0.2":"2026-03-09T09:53:55.804Z","1.0.3":"2026-03-09T09:54:57.078Z","1.0.5":"2026-03-09T10:06:51.089Z","1.0.6":"2026-09-05T08:29:02.586Z"},"author":{"name":"damiano216"},"license":"ISC","description":"SDK for multiple projects","maintainers":[{"name":"algora-ventures","email":"damiano.caffa@gmail.com"}],"readme":"# @algora-ventures/bin-lookup\n\nA simple and efficient Node.js library for looking up Bank Identification Numbers (BINs). This package allows you to retrieve information about a credit or debit card such as the issuing bank, card type, and country, based on the first few digits of the card number.\n\n## Installation\n\nInstall the package using npm:\n\n```bash\nnpm install @algora-ventures/bin-lookup\n```\n\n## Keywords\n\n- bin\n- bin-lookup\n- BIN lookup\n- bank-identification-number\n- credit-card\n- card-issuer\n- issuer-lookup\n- payments\n- card-brand\n\n## Usage\n\nThe library is easy to use. You need to create an instance of `BinLookup` and then you can use the `lookup` method to get the BIN details.\n\nHere is a basic example:\n\n```typescript\nimport { BinLookup, type BinInfo } from \"@algora-ventures/bin-lookup\";\n\nasync function getBinData() {\n  try {\n    const binLookup = await BinLookup.create();\n    const cardBin = \"457173\"; // Example BIN\n    const binInfo: BinInfo | null = binLookup.lookup(cardBin);\n\n    if (binInfo) {\n      console.log(\"BIN Information:\", binInfo);\n    } else {\n      console.log(\"BIN not found.\");\n    }\n  } catch (error) {\n    console.error(\"Failed to initialize BinLookup:\", error);\n  }\n}\n\ngetBinData();\n```\n\n## `BinInfo` Type\n\nThe `lookup` method returns a `BinInfo` object with the following structure:\n\n```typescript\ntype BinInfo = {\n  bin: string;\n  brand: string;\n  type: string;\n  category: string;\n  issuer: string;\n  issuerPhone: string;\n  issuerUrl: string;\n  isoCode2: string;\n  isoCode3: string;\n  countryName: string;\n};\n```\n\nIf the BIN is not found, the `lookup` method will return `null`.\n","readmeFilename":"README.md"}