danyx23 / elm-uuid / Uuid.Barebones

This is the Uuid.Barebones version that generates valid Uuids as Strings and provides a method to verify if a given String is a valid Uuid.

See the main Uuid module docs for more information on how

uuidStringGenerator : Random.Generator String

Random Generator for Uuid Strings. Using this Generator instead of the generate function lets you use the full power of the Generator library to create lists of Uuids, map them to other types etc.

isValidUuid : String -> Basics.Bool

Verification function to check if the given string is a valid Uuid in the canonical representation xxxxxxxx-xxxx-Axxx-Yxxx-xxxxxxxxxxxx where A is the version number between [1-5] and Y is in the range [8-B]