1.0.1 • Published 6 years ago

creditcard-warder v1.0.1

Weekly downloads
50
License
MIT
Repository
github
Last release
6 years ago

creditcard-warder

Size badge Version badge

About

This module is used to validate credit card numbers and get the brand from input. It can say many brands from Brazil.

Install

With npm do:

npm install creditcard-warder --save

Credit Card Brands

Globals

  • Visa
  • Mastercard
  • Amex
  • Dinersclub
  • Discover
  • Unionpay
  • JCB
  • Forbrugsforeningen
  • Dankort

Brazil

  • ELO
  • Hipercard
  • Aura
  • Visa Electron
  • Maestro

Usage

var creditcard = require('creditcard-warder');

var card = creditcard('4514166365215946')
card.getBrand(); // elo
card.validate(); // true

Usage in browser with browserify

CDN latest version:

Build with browserify

npm run build
npm run watch

Test

npm run test
npm run test-browser
1.0.1

6 years ago

0.3.9

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago