ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript

Home Page:https://zelark.github.io/nano-id-cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ulid format preset

martinheidegger opened this issue · comments

I am happily using nanoid for my project but (for compatibility) I also need to use ulidx, to reduce the dependencies, I was wondering if nanoid could provide a ulid preset and/or a ulid function that is compatible with ulid?

No, we are not compatible. The idea of the tools is totally different. ulid is sortable ID while Nano ID is fully random.

Both ways have own benefits. You should choose told depending on task.

It is impossible to reconfigure one you another.