Bun.main 屬性包含當前入口點的絕對路徑。
console.log(Bun.main);
import "./foo.ts";
列印的路徑對應於使用 bun run 執行的檔案。
bun run index.ts/path/to/index.tsbun run foo.ts/path/to/foo.ts有關更多有用的工具,請參閱 文件 > API > 工具。
Bun.main 屬性包含當前入口點的絕對路徑。
console.log(Bun.main);
import "./foo.ts";
列印的路徑對應於使用 bun run 執行的檔案。
bun run index.ts/path/to/index.tsbun run foo.ts/path/to/foo.ts有關更多有用的工具,請參閱 文件 > API > 工具。
HTTP
包管理器
將 bun install 與 Artifactory 一起使用
配置 Git 以 diff Bun 的 lockb lockfile
讀取檔案
執行時
流
將 ReadableStream 轉換為 Uint8Array
將 ReadableStream 轉換為 ArrayBuffer
將 Node.js Readable 轉換為 Uint8Array
實用程式