Skip to content

Instantly share code, notes, and snippets.

Universally Unique Lexicographically Sortable Identifier

Canonical Spec: https://github.com/ulid/spec

ULID()

  • By default operates in monotonic mode.
  • ULID() is an alias of ULID.Monotonic().
  • Use ULID.Random() for non-monotonic mode.