credit-card-library
Card Validator Library
Last updated 2 years ago by deisetrianon .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install credit-card-library 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |