Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.15 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.15 KB

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