credit-card-type
Advanced tools
Changelog
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.
Changelog
4.1.0
getTypeInfo
and types
exports for getting type information such as number spacing given a type string such as visa
.Changelog
4.0.3
Changelog
4.0.2
Changelog
4.0.0
Changelog
2.0.0
length
as a String
to lengths
as an Array