nanoid-postgres
nanoid-postgres copied to clipboard
Add ability to pass custom alphabet
Hi!
I did this change for my project. Thought may be nice to contribute 😃
Hey! thanks for contributing, however there's a bit more to the custom alphabet implementation if you take a look at the original JS repo README https://github.com/ai/nanoid#security and source https://github.com/ai/nanoid/blob/main/index.js#L31
I believe it's to do with the distribution of characters in the custom alphabet, but not totally sure, and haven't had time to dive into it, hence leaving it out, think you'd be able to improve it?
Thanks for pointing this out. I can take a deeper look into this, though the time frame is unbounded. So in case someone else wants to, feel free.