zhangxiao
2024-08-26 57b66478e7e335379435b31c20da4619bd1411f5
1
2
3
4
5
6
import { customAlphabet } from "nanoid/non-secure";
 
const genrateNanoid = (): string => {
    return customAlphabet("ABCDEFGabcdefgHIJKLMNhijklmnOPQRSTUopqrstuVWXYZvwxyz", 10)(20);
};
export default genrateNanoid;