This commit is contained in:
2026-08-14 16:03:47 +01:00
parent fd53e3f4fb
commit dfdc3b2840
2463 changed files with 186456 additions and 111315 deletions
+3
View File
@@ -1,5 +1,6 @@
let urlAlphabet =
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
let customAlphabet = (alphabet, defaultSize = 21) => {
return (size = defaultSize) => {
let id = ''
@@ -10,6 +11,7 @@ let customAlphabet = (alphabet, defaultSize = 21) => {
return id
}
}
let nanoid = (size = 21) => {
let id = ''
let i = size | 0
@@ -18,4 +20,5 @@ let nanoid = (size = 21) => {
}
return id
}
export { nanoid, customAlphabet }