dylang / shortid

Short id generator. Url-friendly. Non-predictable. Cluster-compatible.

Home Page:https://www.npmjs.org/package/shortid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support custom length or less characters?

lslzl3000 opened this issue · comments

The current version is great, but my system only produce about 10k-20k ids, and they will be only stored in hours before destroyed.
So can we support custom settings to use a less complex version, such as short length or number only id?
Thanks

You need to use Nano ID for it

https://github.com/ai/nanoid