3 ms·
It gets rid of a lot of swear words. I think I might prefer this to NanoID for showing to the user. I really like the choice of uppercase for making it visually
by benatkin 6y ago
It gets rid of a lot of swear words. I think I might prefer this to NanoID for showing to the user. I really like the choice of uppercase for making it visually boring. Slack does the same thing for its ids, in that it's a single capital letter for the type followed by a sequence of decimal digits (which could be mistaken for an integer).
For the example as well as in the library I suggest using big integers. That way if you use NanoID or BSON (MongoDB) IDs or even uuids behind the scenes you could always handle the default size ones.
It seems a lot are missing that it doesn't work as well on lowercase. Ever notice that the old product key codes on the boxes of shrinkwrapped software were in uppercase?