Closed theredwillow closed 2 years ago
What changes do you suggest?
"customAlphabet returns a function that allows you to create nanoid with your own alphabet and ID size"
Sure! Good suggestion. Please send PR to save your name in the project’s history.
Thanks
The readme states that "customAlphabet allows you to create nanoid with your own alphabet and ID size."
This language is not inherently obvious that it is a generator (i.e. a function that creates a function).
The example does help, but this is such a commonly used function that I believe many people will accidentally look over the call (i.e. ()) used.