Bun.which
是一个用于查找可执行文件绝对路径的实用函数。它类似于类 Unix 系统中的 which
命令。
Bun.which("sh"); // => "/bin/sh"
Bun.which("notfound"); // => null
Bun.which("bun"); // => "/home/user/.bun/bin/bun"
有关完整文档,请参阅 文档 > API > Utils。
Bun.which
是一个用于查找可执行文件绝对路径的实用函数。它类似于类 Unix 系统中的 which
命令。
Bun.which("sh"); // => "/bin/sh"
Bun.which("notfound"); // => null
Bun.which("bun"); // => "/home/user/.bun/bin/bun"
有关完整文档,请参阅 文档 > API > Utils。
HTTP
包管理器
将 bun install 与 Artifactory 一起使用
配置 Git 以 diff Bun 的 lockb lockfile
读取文件
运行时
流
将 ReadableStream 转换为 Uint8Array
将 ReadableStream 转换为 ArrayBuffer
将 Node.js Readable 转换为 Uint8Array
实用程序