Download src/server-directory.js from TianTianr/sy: direct link, hf CLI and curl.
- Browser
- Download file 186 Bytes
-
https://huggingface.co/spaces/TianTianr/sy/resolve/main/src/server-directory.js
- Command line
-
hf download hf://spaces/TianTianr/sy/src/server-directory.js
-
curl -L -o server-directory.js https://huggingface.co/spaces/TianTianr/sy/resolve/main/src/server-directory.js
186 Bytes
| import path from 'node:path'; | |
| import { fileURLToPath } from 'node:url'; | |
| export const serverDirectory = path.dirname(import.meta.dirname ?? path.dirname(fileURLToPath(import.meta.url))); | |