This module is used to validate credit card numbers and get the brand from input. It can say many brands from Brazil.
With npm do:
npm install creditcard-warder --save
- Visa
- Mastercard
- Amex
- Dinersclub
- Discover
- Unionpay
- JCB
- Forbrugsforeningen
- Dankort
- Hipercard
- Aura
- Visa Electron
- Maestro
among others.
var creditcard = require('creditcard-warder');
var card = creditcard('4514166365215946')
card.getBrand(); // forbrugsforeningen
card.validate(); // true
CDN latest version:
npm run build
npm run watch
npm run test
npm run test-browser