Skip to content

A fast Luhn algorithm for validating credit cards

License

Notifications You must be signed in to change notification settings

LinusU/fast-luhn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fast-luhn Build Status

A fast Luhn algorithm for validating credit cards. Adapted from ShirtlessKirk's popular gist.

Installing

$ npm install fast-luhn

API

luhn(number) -> Boolean

Returns true/false depending on whether the Luhn checksum is valid

number

Required
Type: string

A credit card number.

License

MIT © Ben Drucker

About

A fast Luhn algorithm for validating credit cards

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%