creditcard-generator

Can generate valid credit card numbers for VISA, Amex, Mastercard, Diners, Discover, EnRoute, JCB, Voyager

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
creditcard-generator
2710.0.79 years ago10 years agoMinified + gzip package size for creditcard-generator in KB

Readme

Credit Card generator
A node.js library for generating test credit card numbers. The card numbers are valid with respect to the Luhn algorithm (Mod 10 test). https://en.wikipedia.org/wiki/Luhnalgorithm

Interface

GenCC([Scheme], [numberOfCards]);

Usage

generator = require('./gencc.js')
generator.GenCC();
//Will return 1 MasterCardNumber
generator.GenCC("Amex");
//Will return 1 Amex number
generator.GenCC("VISA", 10);
//Will return 10 VisaCards numbers

Contributing

All contributions are welcome. Please supply tests.

LICENSE

GNU GPL https://gnu.org/licenses/gpl.html
Project forked from https://github.com/grahamking/darkcoding-credit-card