使用 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 > 工具以了解更多實用工具。
套件管理器
將 bun install 與 Artifactory 搭配使用
設定 git 以 diff Bun 的 lockb lockfile
在 GitHub Actions 中使用 Bun 安裝依賴項
讀取檔案
運行時
串流
將 ReadableStream 轉換為 Uint8Array
將 ReadableStream 轉換為 ArrayBuffer
將 Node.js Readable 轉換為 Uint8Array
工具