Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bin-from-pan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-from-pan

Differentiates between 6 digit BIN and 8 digit BIN in PAN

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Bin From Pan

Build Status Coverage Status dependencies Status devDependencies Status

The leading six digits of the card number used to be the "issuer identification number (IIN)", sometimes referred to as the "bank identification number (BIN)".

Now there are new BINs which take first 8 digits of card number. This small module differentiates between 8 digit pans and 6 digit pans. Right now it only detects 8 digit MIR pans but there can be more of those in future.

Installation

npm install bin-from-pan

Usage

const bin = binFromPan('22011234567890');

Function can throw errors if pan was not valid.

FAQs

Package last updated on 03 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc