Skip to main content

Overview

invirt-utils is a small library of zero-dependency Kotlin utilities used across the rest of Invirt and available for use in applications.

implementation(platform("dev.invirt:invirt-bom:${invirtVersion}"))
implementation("dev.invirt:invirt-utils")

The library is loosely organised into the following groups:

  • Strings — reading time, anonymisation, case conversion, URL handling.
  • Date and time — day-of-month suffix, human-readable durations.
  • Currency — minor-unit formatting using java.util.Currency.
  • IDs — UUIDv7 and Base32 encodings.
  • Enums — null-safe parsing and CSV decoding.
  • Files — working / temp directory helpers and a managed TempDir.
  • ThreadsThreadLocal.withValue and ThreadPool.
  • Resources — classpath resources as strings, properties or lists.