LoEx.Nanoid (lo_ex v0.0.2)

Documentation for LoEx.Nanoid.

Summary

Functions

Generates a unique nanoid using UUID v7.

Converts a nanoid to a UUID.

Functions

Generates a unique nanoid using UUID v7.

Returns: A unique nanoid string.

Examples:

iex> LoEx.Nanoid.generate()

Link to this function

to_uuid(nanoid)

Converts a nanoid to a UUID.

Examples

iex> LoEx.Nanoid.to_uuid("2aUyqjCzEIiEcYMKj7TZtw")
"550e8400-e29b-41d4-a716-446655440000"