Spaces:
Sleeping
Sleeping
Download id.js from srinetwork/host: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/srinetwork/host/resolve/main/id.js
- Command line
-
hf download hf://spaces/srinetwork/host/id.js
-
curl -L -o id.js https://huggingface.co/spaces/srinetwork/host/resolve/main/id.js
338 Bytes
| function makeid(num = 4) { | |
| let result = ""; | |
| let characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| var characters9 = characters.length; | |
| for (var i = 0; i < num; i++) { | |
| result += characters.charAt(Math.floor(Math.random() * characters9)); | |
| } | |
| return result; | |
| } | |
| module.exports = {makeid}; | |