Novelty Plastic Moustache

npm

Need private packages and team management tools?Check out npm Orgs. »

fast-luhn

1.0.4 • Public • Published

fast-luhn Build Status Greenkeeper badge

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

install

npm i fast-luhn

Downloadsweekly downloads

16,253

version

1.0.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability