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

credit-card-type

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

credit-card-type - npm Package Versions

124

5.0.1

Diff

Changelog

Source

5.0.1

  • Visa cards can now be 16, 18, or 19 digits.
braintree
published 5.0.0 •

Changelog

Source

5.0.0

  • Card matching has been replaced with a two-tier process. This simplifies the matching process for ambiguous numbers.

  • Partial BIN matches (prefixPattern) are accumulated separately from exact BIN matches (exactPattern).

  • If there were any exact BIN matches, those matches are returned.

  • If there are no exact BIN matches, all partial matches are returned.

braintree
published 4.1.0 •

Changelog

Source

4.1.0

  • Add getTypeInfo and types exports for getting type information such as number spacing given a type string such as visa.
braintree
published 4.0.3 •

Changelog

Source

4.0.3

  • Remove behavior where some UnionPay cards displayed Discover and UnionPay as possible card types
braintree
published 4.0.2 •

Changelog

Source

4.0.2

  • Add support for series 2 MasterCard bins (ranging from 222100 to 272099)
  • Removes dependency on Lodash
braintree
published 4.0.1 •

Changelog

Source

4.0.1

  • Switch to one version of Lodash
braintree
published 4.0.0 •

Changelog

Source

4.0.0

  • Further resolve ambiguity issues with various cards; return an array of potential card types instead of a single type
braintree
published 3.0.0 •

Changelog

Source

3.0.0

  • Resolve ambiguity issues with Maestro and Discover cards
braintree
published 2.0.0 •

Changelog

Source

2.0.0

  • Add support for Maestro and UnionPay
  • Change return type of length as a String to lengths as an Array
braintree
published 1.0.0 •

Changelog

Source

1.0.0

  • Initial Release
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