Theres a bit documentation out there how to convert ULID to UUID but not so much when you need to convert UUID to ULID.
I'm looking at this UUID / ULID generator / converter https://www.ulidtools.com/
but I'm not quite sure how I would replicate the UUID to ULID conversion, the source is too obfuscated for me to understand.
I'm not sure where to even begin, is this conversion even safe ? will it guarantee a unique conversion ?
Pure Javascript Method for conversion:
Converting a UUID to a ULID guarantee a unique code. ULIDs are unique 128-bit identifiers that are generated based on a combination of the current timestamp.
You can also use [https://www.npmjs.com/package/ulid] for converting UUID to ULID