1.0.3 • Published 6 years ago

credit-card-library v1.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Credit Card Library v.1.0.3

Credit Card Library is a JavaScript Library that can be used to validate a credit card number through the Luhn algorithm.

Version 1.0.3

Returns true for valid card numbers and false to invalid card numbers.

Method

cardValidator(cardNumber);

Usage

Installation

$npm install credit-card-library

Examples

$node
> let validator = require("credit-card-library")
> validator(36490102462661); // true
$node
> let validator = require("credit-card-library")
> validator(4112344112344114); // false
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago