ULID scala

Build Status Coverage Status

ULID (Universally Unique Lexicographically Sortable Identifier) generator and parser for Scala.

Refer alizain/ulid for a more detailed ULID specification.

Getting Started

libraryDependencies += "com.github.jkugiya" %% "ulid" % "<version>"

Usage

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()

LICENSE

LICENSE

Prior Arts