what-credit-card
v1.0.1
Published
Check to determine if input is a valid credit card number; If valid, determines the type of credit card
Downloads
3
Maintainers
Readme
whatCreditCard
Check if the input is a valid credit card number; If valid, determines the type(name of issuing company) of credit card
Install
$ npm install --save what-credit-card
Usage
var whatCreditCard = require('what-credit-card');
whatCreditCard.test('6011881489874922');
//=> MasterCard
creditCardRegex.test('4117733972344127');
//=> Visa
creditCardRegex.test('6031181485017922');
//=> invalid
License
MIT © Chirag Chauhan