Bun 在 import.meta
物件上提供了一些模組特定的工具。使用 import.meta.file
來檢索目前檔案的名稱。
import.meta.file; // => "c.ts"
請參閱 文件 > API > import.meta 以取得完整文件。
Bun 在 import.meta
物件上提供了一些模組特定的工具。使用 import.meta.file
來檢索目前檔案的名稱。
import.meta.file; // => "c.ts"
請參閱 文件 > API > import.meta 以取得完整文件。
套件管理器
將 bun install 與 Artifactory 搭配使用
設定 git 以 diff Bun 的 lockb lockfile
在 GitHub Actions 中使用 Bun 安裝依賴項
讀取檔案
執行階段
串流
將 ReadableStream 轉換為 Uint8Array
將 ReadableStream 轉換為 ArrayBuffer
將 Node.js Readable 轉換為 Uint8Array
工具