nulid

A ULID implementation in Nim!

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License CC0
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:23

Installation

nimble install nulid
choosenim install nulid
git clone https://github.com/The-Ticking-Clockwork/NULID

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
nulid - - - - - -

Source

Repository https://github.com/The-Ticking-Clockwork/NULID
Homepage https://github.com/The-Ticking-Clockwork/NULID
Registry Source nimble_official

README

NULID

This is an implementation of the ULID spec in Nim! This also supports the JS backend for ULID generation!

This supports jsony and debby out of the box too!

Random fun fact: I coded the initial code for ULID generation on my phone via Termux!

Compile Flags

-d:nulidInsecureRandom: Uses std/random instead of std/sysrand.

-d:nulidNoLocks: Disables any usage of locks within the program.

The JS backend automatically defines -d:nulidNoLocks.

Usage

let gen = initUlidGenerator()
let ulid = gen.ulid()

echo ulid