download
raw
497 Bytes
let urlAlphabet =
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
let customAlphabet = (alphabet, defaultSize = 21) => {
return (size = defaultSize) => {
let id = ''
let i = size | 0
while (i--) {
id += alphabet[(Math.random() * alphabet.length) | 0]
}
return id
}
}
let nanoid = (size = 21) => {
let id = ''
let i = size | 0
while (i--) {
id += urlAlphabet[(Math.random() * 64) | 0]
}
return id
}
export { nanoid, customAlphabet }

Xet Storage Details

Size:
497 Bytes
·
Xet hash:
56ff1e84e971a02c58d087c006b7f4aee021d42cbe1f29030debb983e26a74c1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.