Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Luhn (mod 10) algorithm component
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
README.md
component.json
index.js

README.md

luhn

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

Returns a boolean value.

Installation

$ component install chrisbuttery/luhn

API

var luhn = require('luhn');

luhn.validate('4111111111111111'); // it's soooo valid right now

License

MIT

Something went wrong with that request. Please try again.