Newton's Poleless Magnet

card-validate

0.0.1 • Public • Published

Credit Card Validation

Validates of a credit card number is valid, and tells you what kind of card it is.

Supported Card:

  • Discover
  • Visa
  • JCB
  • Diner's Club
  • MasterCard
  • American Express

Features:

  • UMD enabled (Global: CardVal)
  • Luhn Algorithm included

example:

CardVal.validateNumber('4242424242424242')

output:

{
  valid: true,
  name: 'Visa'
}

install

npm i card-validate

Downloadsweekly downloads

0

version

0.0.1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability