credit-card-validation-qp

1.0.0 • Public • Published

Credit Card Validation

Verify the correctness of the entered card number and the type of card used

Installation

npm i credit-card-validation --save

Then...

import { cardNumberValidation, getCardType } from 'credit-card-validation';

cardNumberValidation(CARD_NUMBER);  // false or true
getCardType(CARD_NUMBER);   //Mastercard, AMEX, Discover, Diners, Diners-Carte Blanche, JCB, Visa Electron or nothing

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i credit-card-validation-qp

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.7 kB

Total Files

3

Last publish

Collaborators

  • mohammaddc