Renamed to robinheghan/elm-phone-numbers. It is published under that name, and new versions come out there.
Versions published as Skinney/elm-phone-numbers still install under that name. 32 versions of 32 come from the new location (see their notes).
Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/robinheghan/elm-phone-numbers.
What we checked: The repo moved to github.com/robinheghan/elm-phone-numbers. Rebuilt with git archive from commit 46a3515591f4 of https://github.com/robinheghan/elm-phone-numbers (zip prefix Skinney-elm-phone-numbers-46a3515/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 53e423dc12a4a32e0a707f098fe489bd292d1512.
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/Skinney/elm-phone-numbers/zipball/2.0.6/
Functions for validating phone numbers
You don't need to define any of these records yourself, please see the PhoneNumber.Countries module.
What kind of a number are we talking about? Fixed line? Mobile number? Pager number? etc.
Describes a NumberType with an example number, as well as a regex to validate if a given number is of the set numberType
Pass this record to valid or matches to define how validation should occur.
Validation will occur against the default country as well as the list of other countries, and validation will only occur against the list of number types. Providing a empty list of number types might still succeed, as every country has a general number pattern that will be checked.
Any number that doesn't have an international prefix will be treated as if it belongs to the default country.
A list of all number types. Use this if you don't care what kind of number something is, but want to know if the number can belong to a certain country.
A simple test to see if the provided number matches anything provided by the validation config.
Returns a list of tuples where the first element is a country that the number can belong to, and the second list contains the different types the number can be. It's possible the the second element is an empty list, as every country has a general number pattern that will be checked if the number type cannot be determined.
Contains phone related metadata for a country