Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
TianTianr
/
sy
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
sy
/
src
/
server-directory.js
吴松泽
main
c120a1c
8 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
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
)));