Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.
What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/AuricSystemsInternational/creditcard-validator/zipball/1.0.1/
This library allows validation of a creditcard number potentially limiting by accepted card types. For example, if your business only accepts Mastercard and Visa you can limit the valid cards to those types.
A card number can match multiple card types. Overall, a number is valid when it's valid according to luhn algorithm with valid length and type.
Represents possible ranges for a creditcard number. It can be a string or a range with starting and ending digits
Find whether a creditcard number is valid. You can limit what card types are eligible for the validation attempt.
Converts from string MOP (Method of Payment) to CardType
Finds whether card length is one of the valid lengths for the type
List of CardTypeInfo for all supported types
Find card info whose ranges contain a pattern that the card number matches
Card types supported by this library are: American Express (AM), Discover (DS), Diners Club (DC), Mastercard (MC) and VISA (VI).