bitwalker / uniq

Provides UUID generation, parsing, and formatting. Supports RFC 4122, and the v6 draft extension
Apache License 2.0
96 stars 14 forks source link

Uniq

Master Hex.pm Version

Uniq provides generation, formatting, parsing, and analysis of RFC 4122 UUIDs, with support for the draft UUIDv6 extension. It is a package for Elixir projects, and can be found on Hex as :uniq.

Features

Installation

def deps do
  [
    {:uniq, "~> 0.1"}
  ]
end

Usage

The primary API is provided by the Uniq.UUID module.

To generate UUIDs, pick the version you want, and call the appropriate generator. For example:

See the docs for the full set of functions available.

You can also convert UUID strings to/from the human-readable and binary formats; parse UUID strings/binaries; and determine their validity.