Blob
類別提供多種方法,可用於以不同格式使用其內容,包括 .text()
。
const blob = new Blob(["hello world"]);
const str = await blob.text();
// => "hello world"
請參閱 文件 > API > 二進位資料,以取得使用 Bun 操作二進位資料的完整文件。
Blob
類別提供多種方法,可用於以不同格式使用其內容,包括 .text()
。
const blob = new Blob(["hello world"]);
const str = await blob.text();
// => "hello world"
請參閱 文件 > API > 二進位資料,以取得使用 Bun 操作二進位資料的完整文件。
HTTP
套件管理員
與 Artifactory 一起使用 bun install
在 GitHub Actions 中使用 Bun 安裝依賴項
讀取檔案
執行時期
公用程式
WebSocket