Skip to content

lourenzo/card-number-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Card generator

A node.js library to generate and validate credit card numbers.

The card numbers are valid with respect to the Luhn algorithm (Mod 10 test). https://en.wikipedia.org/wiki/Luhn_algorithm

Specific details can be set on the fly to allow different card types generation.

Interface

cardNumber([Scheme], [numberOfCards], [pseudoRandomFunction]);

pseudoRandomFunction must supply random numbers between 0 to 1. Use this in conjunction with a seeded random number generator to reproduce test data.

Contributing

All meaningful contributions are welcome. Tests even more.

LICENSE

GNU GPL https://gnu.org/licenses/gpl.html

Original code was forked from https://github.com/ExxKA/credit-card-generator

That was forked from https://github.com/grahamking/darkcoding-credit-card

About

Credit card generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%