使用 Bun.fileURLToPath()
將 file://
URL 轉換為絕對路徑。
Bun.fileURLToPath("file:///path/to/file.txt");
// => "/path/to/file.txt"
請參閱 文件 > API > 實用工具 以取得更多有用的實用工具。
使用 Bun.fileURLToPath()
將 file://
URL 轉換為絕對路徑。
Bun.fileURLToPath("file:///path/to/file.txt");
// => "/path/to/file.txt"
請參閱 文件 > API > 實用工具 以取得更多有用的實用工具。
HTTP
處理程序
讀取檔案
執行時間
實用工具