ContaAzul / creditcard.js

A simple credit card validation library in JavaScript
http://contaazul.github.io/creditcard.js/
Other
375 stars 82 forks source link

Extract to another project / Entity #164

Open renatovico opened 1 year ago

renatovico commented 1 year ago

Want to request a feature or report a bug?

I need again validate creditcard but now in another language, think a moment about this, why not extract the current list ( https://github.com/ContaAzul/creditcard.js/blob/master/src/cards.js) to a json or csv for a better consumer in similar fashion tz-data works (https://www.iana.org/time-zones)

What is the current behavior?

CreditCard list is very specified for creditcard.js project

What is the expected behavior?

Create a more comprehensive and collaborative creditcard list

vr-varad commented 10 months ago

Creating a more comprehensive and collaborative credit card list involves leveraging community contributions, adhering to security and privacy guidelines, and continuously updating the list with accurate information. ''' // Collaborative Credit Card List

const collaborativeCreditCards = [ { name: 'ExampleCard', bins: /^(123456|789012)[0-9]{10,12}/, codeLength: 3, }, // Add more card types contributed by the community... ];

export default collaborativeCreditCards; '''

vr-varad commented 10 months ago

@cacontinuos what about adding more cards that it support that are widely used around the globe?

cirocfc commented 10 months ago

Hey @renatovico and @vr-varad , pull requests are welcomed. Feel free to engage in this feature.