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

Dependencies (0)

    Dev Dependencies (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