1.0.1 • Published 8 years ago

what-credit-card v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

npm

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