I'm using nanoid to generate a unique string ID. I have some questions.
1- When I limit size is the outcome unique?
const nanoid = nanoid(6)
2- I do not want some letters such as (- and _ ) in the result. How can I do that and dose the outcome is unique?
3- I know that I can use customAlphabet
to generate keys. dose the result of customAlphabet
unique?
import { customAlphabet } from 'nanoid'
const nanoid = customAlphabet('1234567890abcdef', 10)
thanks in advance