mry-card-validator
v1.0.3
Published
A simple credit card validator using Luhn algoritm.
Downloads
3
Readme
Credit Card Validator
A library to check if a credit card is valid using the Luhn Algorithm.
Requirements
Installation and use
You can easily install this library using npm just as it follows:
$ npm install mry-card-validator
And you can use it just as easily with Node.js:
$ node
> const library = require('mry-card-validator')
> library.cardValidator(36490102462661)
> // true
Roadmap
Version 1.0.3
- Returns
true
if a credit card is valid;false
if it's not. - Removes minor bugs.
Version 1.0.2
- Removes validation bugs.
Version 1.0.1
- Removes minor bugs.
Version 1.0.0
- Returns
true
if a credit card is valid;false
if it's not.