what-credit-card

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i what-credit-card

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • crc442