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'
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i card-validate

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • howlowck