A Luhn (mod 10) algorithm component
JavaScript Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
Makefile
README.md
component.json
index.js
package.json

README.md

node-luhn

NPM version build status Test coverage js-standard-style

A Luhn (mod 10) algorithm module for credit card number validation.

Install

$ npm install --save node-luhn

or:

$ component install chrisbuttery/luhn

Usage

var isLuhn = require('node-luhn')

isLuhn('4111111111111111')
//=> true

License

MIT © Chris Buttery