5 ms·
I’ve started using nanoid for generated ids. Here is the JavaScript version: https://github.com/ai/nanoid https://github.com/ai/nanoid Some info from that pa
by dugmartin 3y ago
I’ve started using nanoid for generated ids. Here is the JavaScript version:
https://github.com/ai/nanoid https://github.com/ai/nanoid
Some info from that page:
- Safe. It uses hardware random generator. Can be used in clusters.
- Short IDs. It uses a larger alphabet than UUID (A-Za-z0-9_-). So ID size was reduced from 36 to 21 symbols.
- Portable. Nano ID was ported to 20 programming languages.