A ULID implementation in Nim!
Go to file
Yu Vitaqua fer Chronos 8ce252be13
Merge pull request #1 from Yu-Vitaqua-fer-Chronos/devel
Merge Devel into Main
2023-11-01 21:53:03 +00:00
.github/workflows Add more tests to GitHub workflow 2023-11-01 21:48:50 +00:00
src Fix tests for JavaScript, raise errors and defects that inherit from one type 2023-11-01 21:43:23 +00:00
tests Fix tests for JavaScript, raise errors and defects that inherit from one type 2023-11-01 21:43:23 +00:00
.gitignore Fix tests for JavaScript, raise errors and defects that inherit from one type 2023-11-01 21:43:23 +00:00
nulid.nimble W.I.P BigInts support, not complete yet 2023-11-01 20:05:58 +00:00
README.md Fix tests for JavaScript, raise errors and defects that inherit from one type 2023-11-01 21:43:23 +00:00

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