ULID (Universally Unique Lexicographically Sortable Identifier) generator and parser for Scala.
Refer alizain/ulid for a more detailed ULID specification.
libraryDependencies += "com.github.jkugiya" %% "ulid" % "<version>"
ULID generation examples:
import jkugiya.ulid.ULID
val generator = ULID.getGenerator()
val ulid: ULID = generator.generate()
// or ulid.base32
val base32: String = generator.base32()
// or ulid.uuid
val uuid: UUID = generator.uuid()
// or ulid.binary
val binary: Array[Byte] = generator.binary()