Liking cljdoc? Tell your friends :D

clj-luhn

A Clojure library designed to validate credit card numbers that use the Luhn algorithm.

Usage

(clj-luhm/valid? 49927398716)
;=> true
(clj-luhm/valid? 79927398710)
;=> false
(clj-luhm/check-digit 79927398710)
;=> 3

Installation

Clojars Project

License

Copyright © 2015 Brian Cain

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close