ai / nanoid

A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript
https://zelark.github.io/nano-id-cc/
MIT License
24.61k stars 790 forks source link

suggest #327

Closed xiaoqufengdi closed 2 years ago

xiaoqufengdi commented 2 years ago

if i want to generates an ID that does not start with a number, how to do it?

ai commented 2 years ago

Just add a string in the beginning:

`id` + nanoid()