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.
to install package run:
yarn add fake-credit-card
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 (38ms)
Done in 0.86s.
node
> const fakecc = require("../index");
> console.log(fakecc.flag(fakecc.flags.VISA).cardNumber);
[ { number: '4999452238006090' } ]
read test file to more sample.
support to this credcard flags.
> Object.keys(fakecc.flags)
[ 'ELO',
'JCB',
'AMEX',
'VISA',
'DINERS',
'MASTER',
'VOYAGER',
'ENROUTE',
'DISCOVER',
'UNIONPAY',
'HIPERCARD' ]