New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bankcard-parser

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

bankcard-parser

银行号码解析器,根据号码判断所属银行

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

bankcard-parser (挖坑,待填)

银行号码解析器,根据号码判断所属银行。

var parser = require('bankcard-parser');

console.log(parser.get('6228480402564890018'));
// { success: true, data: { org: '银联', bank: '所属银行', type: '银行卡类型', locale: '开户地' } }

console.log(parser.get('622848040256489001'));
// { success: false, message: '卡号长度不是19位' }

银行卡基本知识

通常,银行卡卡号的前六位是用来表示发卡银行或机构的,称为发卡行识别码( Bank Identification Number ,缩写为 BIN )

目前,由中国银联各成员机构发行的银联标准卡 BIN 是“ 62 ”字头的。

参考资料

支付宝有银行卡号自动识别银行卡类型的功能。

FAQs

Package last updated on 08 Dec 2016

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