Download node_modules/nanoid/non-secure/index.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/nanoid/non-secure/index.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/nanoid/non-secure/index.js
-
curl -L -o index.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/nanoid/non-secure/index.js
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 } | |