0.0.6 • Published 8 years ago

luhn-cc v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

💳✅❌ luhn-cc

npm version CircleCI Coverage Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies bitHound Code

JavaScript library to validate credit card numbers using luhn algorithm

Installation

$ npm i -S luhn-cc

Usage

import luhnCC from 'luhn-cc';

luhnCC.isValid('378282246310005'); // true
luhnCC.isValid('378282246'); // false

Tested Cards

Credit Card TypeCredit Card NumberTested
AMEX378282246310005
AMEX Corporate378734493671000
Australian Bank Card5610591081018250
Diners Club30569309025904
Discover6011111111111117
JCB3530111333300000
Master Card5555555555554444
VISA4111111111111111
Switch/Solo6331101999990016

Development Setup

# install dependencies
$ npm install

# dev mode
$ npm run dev

# test
$ npm run test

# build
$ npm run build
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago