fake-credit-card
Fake Credit Card Number Generator
This code is based in original creditcardvalidator website.
The code generate a random credcard list with cvv and expiration date.
This is only to test use or studies.
how to
install
to install package run:
yarn add fake-credit-card
test
to run unity tests
yarn test yarn run v1.19.1$ mocha test fake_credit_card ✓ one visa card number ✓ one master card number ✓ a invalid flag card number ✓ card with expiration date ✓ card with cvv ✓ many cards 6 passing Done in 0.86s.
use sample
node> const fakecc = ;> console; number: '4999452238006090'
read test file to more sample.
comming
support to this credcard flags.
> Object 'ELO' 'JCB' 'AMEX' 'VISA' 'DINERS' 'MASTER' 'VOYAGER' 'ENROUTE' 'DISCOVER' 'UNIONPAY' 'HIPERCARD'