Spaces:
Sleeping
Sleeping
Download src/utils/ids.ts from victor/just-bash-mcp: direct link, hf CLI and curl.
- Browser
- Download file 151 Bytes
-
https://huggingface.co/spaces/victor/just-bash-mcp/resolve/main/src/utils/ids.ts
- Command line
-
hf download hf://spaces/victor/just-bash-mcp/src/utils/ids.ts
-
curl -L -o ids.ts https://huggingface.co/spaces/victor/just-bash-mcp/resolve/main/src/utils/ids.ts
151 Bytes
| import { randomBytes } from "node:crypto"; | |
| export function newId(prefix: string): string { | |
| return `${prefix}_${randomBytes(12).toString("hex")}`; | |
| } | |