zelark / nano-id-cc

Nano ID collision calculator
https://zelark.github.io/nano-id-cc/
MIT License
45 stars 10 forks source link

[FIX]:Fixed code-sample for customAlphabet #28

Closed anshulsahni closed 3 years ago

anshulsahni commented 3 years ago

nanoid/generate module was deprecated in v3, as mentioned here :point_right: https://github.com/ai/nanoid/blob/main/CHANGELOG.md#30, the sample code being populated was outdated, hence fixed it with correct sample code for custom characters

Due to wrong sample code, some users got confused as we can see in this closed issues :point_right: https://github.com/ai/nanoid/issues/258

anshulsahni commented 3 years ago

@zelark please review this, whenever you get time

zelark commented 3 years ago

Thanks for fixing.