fake_credit_card

1.0.1 • Public • Published

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 (38ms)
 
Done in 0.86s.

use sample

node
> const fakecc = require("../index");
> console.log(fakecc.flag(fakecc.flags.VISA).cardNumber);
[ { number: '4999452238006090' } ]

read test file to more sample.

comming

support to this credcard flags.

> Object.keys(fakecc.flags)
[ 'ELO',
  'JCB',
  'AMEX',
  'VISA',
  'DINERS',
  'MASTER',
  'VOYAGER',
  'ENROUTE',
  'DISCOVER',
  'UNIONPAY',
  'HIPERCARD' ]

contacts

pedro.leao@gmail.com

Readme

Keywords

none

Package Sidebar

Install

npm i fake_credit_card

Weekly Downloads

2

Version

1.0.1

License

LGPL-3.0

Unpacked Size

46.1 kB

Total Files

7

Last publish

Collaborators

  • pedrorleao