Download src/utils/generateNanoid.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 122 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/utils/generateNanoid.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/utils/generateNanoid.ts
-
curl -L -o generateNanoid.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/utils/generateNanoid.ts
122 Bytes
| import { customAlphabet } from "nanoid"; | |
| export const nanoid = customAlphabet("abcdefghijklmnopqrstuvwxyz0123456789", 6); | |